Listing files in rpm archive

The name of the pictureThe name of the pictureThe name of the pictureClash 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






share|improve this question

























    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






    share|improve this question





















      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






      share|improve this question











      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








      share|improve this question










      share|improve this question




      share|improve this question









      asked yesterday









      pkaramol

      18311




      18311




















          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)





          share|improve this answer





















          • 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










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          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






























          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)





          share|improve this answer





















          • 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














          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)





          share|improve this answer





















          • 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












          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)





          share|improve this answer













          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)






          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered yesterday









          Thomas

          3,37941023




          3,37941023











          • 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
















          • 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















          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












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)