Listing files in rpm archive

Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
0
down vote
favorite
What is the difference in the following 2 commands:
rpm -qlp <filename>.rpm
rpm -qilp <filename>.rpm
I know the -i flag is for install but how does that relate to producing different outputs, as in the following example:
[vagrant@10 ~]$ rpm -qlp nfs-utils-1.3.0-0.54.el7.x86_64.rpm | wc -l
98
[vagrant@10 ~]$ rpm -qilp nfs-utils-1.3.0-0.54.el7.x86_64.rpm | wc -l
127
package-management rpm
add a comment |Â
up vote
0
down vote
favorite
What is the difference in the following 2 commands:
rpm -qlp <filename>.rpm
rpm -qilp <filename>.rpm
I know the -i flag is for install but how does that relate to producing different outputs, as in the following example:
[vagrant@10 ~]$ rpm -qlp nfs-utils-1.3.0-0.54.el7.x86_64.rpm | wc -l
98
[vagrant@10 ~]$ rpm -qilp nfs-utils-1.3.0-0.54.el7.x86_64.rpm | wc -l
127
package-management rpm
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
What is the difference in the following 2 commands:
rpm -qlp <filename>.rpm
rpm -qilp <filename>.rpm
I know the -i flag is for install but how does that relate to producing different outputs, as in the following example:
[vagrant@10 ~]$ rpm -qlp nfs-utils-1.3.0-0.54.el7.x86_64.rpm | wc -l
98
[vagrant@10 ~]$ rpm -qilp nfs-utils-1.3.0-0.54.el7.x86_64.rpm | wc -l
127
package-management rpm
What is the difference in the following 2 commands:
rpm -qlp <filename>.rpm
rpm -qilp <filename>.rpm
I know the -i flag is for install but how does that relate to producing different outputs, as in the following example:
[vagrant@10 ~]$ rpm -qlp nfs-utils-1.3.0-0.54.el7.x86_64.rpm | wc -l
98
[vagrant@10 ~]$ rpm -qilp nfs-utils-1.3.0-0.54.el7.x86_64.rpm | wc -l
127
package-management rpm
asked yesterday
pkaramol
18311
18311
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
When rpm is called in query mode -q, the -i flag is for displaying package information not for install.
From the man page of rpm:
PACKAGE QUERY OPTIONS:
-i, --info
Display package information, including name, version,
and description. This uses the --queryformat if one was specified.
You can easily see the difference if do not pipe the output to wc but rather look at the output of your commands. For example:
diff <(rpm -qlp nfs-utils-1.3.0-0.54.el7.x86_64.rpm) <(rpm -qilp nfs-utils-1.3.0-0.54.el7.x86_64.rpm)
thanks for this; however I noticed that these two flags, i.e.-qand-icannot be combined alone;[vagrant@10 ~]$ rpm -qi nfs-utils-1.3.0-0.54.el7.x86_64.rpm package nfs-utils-1.3.0-0.54.el7.x86_64.rpm is not installed
â pkaramol
yesterday
@pkaramol: They work together just fine, but withoutpyou need to specify the name of an installed package.
â Ignacio Vazquez-Abrams
yesterday
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
When rpm is called in query mode -q, the -i flag is for displaying package information not for install.
From the man page of rpm:
PACKAGE QUERY OPTIONS:
-i, --info
Display package information, including name, version,
and description. This uses the --queryformat if one was specified.
You can easily see the difference if do not pipe the output to wc but rather look at the output of your commands. For example:
diff <(rpm -qlp nfs-utils-1.3.0-0.54.el7.x86_64.rpm) <(rpm -qilp nfs-utils-1.3.0-0.54.el7.x86_64.rpm)
thanks for this; however I noticed that these two flags, i.e.-qand-icannot be combined alone;[vagrant@10 ~]$ rpm -qi nfs-utils-1.3.0-0.54.el7.x86_64.rpm package nfs-utils-1.3.0-0.54.el7.x86_64.rpm is not installed
â pkaramol
yesterday
@pkaramol: They work together just fine, but withoutpyou need to specify the name of an installed package.
â Ignacio Vazquez-Abrams
yesterday
add a comment |Â
up vote
4
down vote
accepted
When rpm is called in query mode -q, the -i flag is for displaying package information not for install.
From the man page of rpm:
PACKAGE QUERY OPTIONS:
-i, --info
Display package information, including name, version,
and description. This uses the --queryformat if one was specified.
You can easily see the difference if do not pipe the output to wc but rather look at the output of your commands. For example:
diff <(rpm -qlp nfs-utils-1.3.0-0.54.el7.x86_64.rpm) <(rpm -qilp nfs-utils-1.3.0-0.54.el7.x86_64.rpm)
thanks for this; however I noticed that these two flags, i.e.-qand-icannot be combined alone;[vagrant@10 ~]$ rpm -qi nfs-utils-1.3.0-0.54.el7.x86_64.rpm package nfs-utils-1.3.0-0.54.el7.x86_64.rpm is not installed
â pkaramol
yesterday
@pkaramol: They work together just fine, but withoutpyou need to specify the name of an installed package.
â Ignacio Vazquez-Abrams
yesterday
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
When rpm is called in query mode -q, the -i flag is for displaying package information not for install.
From the man page of rpm:
PACKAGE QUERY OPTIONS:
-i, --info
Display package information, including name, version,
and description. This uses the --queryformat if one was specified.
You can easily see the difference if do not pipe the output to wc but rather look at the output of your commands. For example:
diff <(rpm -qlp nfs-utils-1.3.0-0.54.el7.x86_64.rpm) <(rpm -qilp nfs-utils-1.3.0-0.54.el7.x86_64.rpm)
When rpm is called in query mode -q, the -i flag is for displaying package information not for install.
From the man page of rpm:
PACKAGE QUERY OPTIONS:
-i, --info
Display package information, including name, version,
and description. This uses the --queryformat if one was specified.
You can easily see the difference if do not pipe the output to wc but rather look at the output of your commands. For example:
diff <(rpm -qlp nfs-utils-1.3.0-0.54.el7.x86_64.rpm) <(rpm -qilp nfs-utils-1.3.0-0.54.el7.x86_64.rpm)
answered yesterday
Thomas
3,37941023
3,37941023
thanks for this; however I noticed that these two flags, i.e.-qand-icannot be combined alone;[vagrant@10 ~]$ rpm -qi nfs-utils-1.3.0-0.54.el7.x86_64.rpm package nfs-utils-1.3.0-0.54.el7.x86_64.rpm is not installed
â pkaramol
yesterday
@pkaramol: They work together just fine, but withoutpyou need to specify the name of an installed package.
â Ignacio Vazquez-Abrams
yesterday
add a comment |Â
thanks for this; however I noticed that these two flags, i.e.-qand-icannot be combined alone;[vagrant@10 ~]$ rpm -qi nfs-utils-1.3.0-0.54.el7.x86_64.rpm package nfs-utils-1.3.0-0.54.el7.x86_64.rpm is not installed
â pkaramol
yesterday
@pkaramol: They work together just fine, but withoutpyou need to specify the name of an installed package.
â Ignacio Vazquez-Abrams
yesterday
thanks for this; however I noticed that these two flags, i.e.
-q and -i cannot be combined alone; [vagrant@10 ~]$ rpm -qi nfs-utils-1.3.0-0.54.el7.x86_64.rpm package nfs-utils-1.3.0-0.54.el7.x86_64.rpm is not installedâ pkaramol
yesterday
thanks for this; however I noticed that these two flags, i.e.
-q and -i cannot be combined alone; [vagrant@10 ~]$ rpm -qi nfs-utils-1.3.0-0.54.el7.x86_64.rpm package nfs-utils-1.3.0-0.54.el7.x86_64.rpm is not installedâ pkaramol
yesterday
@pkaramol: They work together just fine, but without
p you need to specify the name of an installed package.â Ignacio Vazquez-Abrams
yesterday
@pkaramol: They work together just fine, but without
p you need to specify the name of an installed package.â Ignacio Vazquez-Abrams
yesterday
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f460629%2flisting-files-in-rpm-archive%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password