01-09-05 01:47 AM
In article <1105167283.338566.223550@f14g2000cwb.googlegroups.com>,
tsiwut@yahoo.com wrote:
>I have a *large* repository of rpm updates on an ftp server that i use
>
>rpm -Uvh ftp://server/path/to/*.rpm
OK - but I prefer to use the -F rather than -U, so it's not installing
unwanted stuff - see the 'rpm' man page for the difference. By the same
token, we only put the stuff we want installed into the updates
directory, so it's not often a problem for us.
>problem is, the number of rpm files has grown enormously, I am sure a
>lot of them are not being installed.
One would hope
>is there a way to tell which rpms were actually installed, so that i
>can delete the unneeded ones from the ftp server?
rpm -qa | sort > installed.rpms
We do that about an hour after the rpm -F command (as we normally do
this as a cron job, we don't bother with the -vh options in the install).
We then check that the stuff that was in the install directory is now
installed. Then we _manually_ move the stuff in the update directory to
an archive directory, so that it's available for future re-builds as
needed. You could also do a 'diff installed.rpms.old installed.rpms',
but we diff against a master list that we keep, so that we know that all
systems have the same packages.
Old guy
[ Post a follow-up to this message ]
|