fedora 23

Suvayu Ali fatkasuvayu+linux at gmail.com
Wed Sep 30 11:22:01 UTC 2015


On Wed, Sep 30, 2015 at 05:54:25AM -0400, Paul Cartwright wrote:
> On 09/30/2015 04:14 AM, Suvayu Ali wrote:
> >>> > >   rpm -qa --queryformat='%{name}\n'
> >> > that gets rid of the version #'s for each app... hmm.. I like that
> >> > 
> >> >   rpm -qa --queryformat='%{name}\n' > fedora_installed_apps
> > You might want to add arch if you have a multilib system.
> >
> >   $ rpm -qa --queryformat='%{name}.%{arch}\n'
> >
> > Cheers,
> that doesn't work.. it leaves the .I686 /x86_64/.noarch on..
> 
> adobe-source-han-sans-twhk-fonts.noarch
> readline.i686
> man-pages.noarch
> harfbuzz.i686
> nfs-utils.x86_64
> krb5-libs.i686

That's kinda the point.  On a multilib system, you will have packages
for multiple architectures.  Without the trailing .arch, when you
reinstall, only the default architecture will be installed.

Here is an example.  I have both 64 bit and 32 bit pulseaudio-libs
because of Skype.

  $ rpm -q --queryformat="%{name}.%{arch}\n" pulseaudio-libs
  pulseaudio-libs.x86_64
  pulseaudio-libs.i686

Without the trailing .arch, I will only get the x86_64 package when
reinstalling from the list.

> and the original also gets noarch:
> 
> rpm -qa --queryformat='%{name}\n' |grep adobe
> adobe-release-x86_64
> adobe-source-han-sans-cn-fonts
> adobe-source-han-sans-twhk-fonts

This will get noarch too!  Just look at your first output, it includes
man-pages.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list