Re: updating package list installation via rpm -qa

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am not totally sure what you want, but is this what you want:

rpm -qa --qf '%{NAME}\n'

This will print the package name for each package that is *installed* on
this system.

    --brett

On Sun, 2003-01-12 at 14:38, Haisam K. Ido wrote:
> rpm -qq --qf '%{NAME}\n' losetup-2.11 returns losetup
> 
> however,
> 
>   rpm -qa | rpm -qq --qf '%{NAME}\n' -
> 
> does not read the standard in of rpm -qa, or can it?
> 
> I guess I'm going to have to resort to perl.
> 
> Brett Schwarz wrote:
> > On Sun, 2003-01-12 at 13:43, Haisam K. Ido wrote:
> > 
> >>Will kickstart work with an updated list of installed packages via "rpm -qa", which 
> >>includes versioning numbers.  In other words, do I need to remove the versioning 
> >>numbers for the kickstart installation to work.
> >>
> > 
> > 
> > I think you need the "NAME" of the package. You can get the names by
> > doing:
> > 
> > rpm -qp --qf '%{NAME}\n' *.rpm
> > 
> > 
> >>Also what if the package I am installing from kickstart is already listed in @ section?
> >>
> > 
> > 
> > I think this gets resolved by itself. From the source, it looks like
> > each package is just a key in a dict, and is either selected or not
> > selected...so I assume there shouldn't be conflict (note, I am not a
> > python guru); once it is selected, reading it again won't change that...
> > 
> > 
> >     --brett
> > 
> 
> 
> 
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list@xxxxxxxxxx
> https://listman.redhat.com/mailman/listinfo/kickstart-list
-- 
Brett Schwarz
brett_schwarz AT yahoo.com





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux