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

Re: updating package list installation via rpm -qa



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







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