Red Hat RPM - rpm question...

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat RPM > January 2005 > rpm question...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author rpm question...
tsiwut@yahoo.com

2005-01-08, 2:47 am

I have a *large* repository of rpm updates on an ftp server that i use
to update my RedHat ES3 servers after the OS install, I use the command


rpm -Uvh ftp://server/path/to/*.rpm

problem is, the number of rpm files has grown enormously, I am sure a
lot of them are not being installed.

is there a way to tell which rpms were actually installed, so that i
can delete the unneeded ones from the ftp server?


thanks

Moe Trin

2005-01-08, 8:47 pm

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

phazr

2005-01-09, 5:55 pm

On Fri, 07 Jan 2005 22:54:43 -0800, tsiwut typed:

> I have a *large* repository of rpm updates on an ftp server that i use to
> update my RedHat ES3 servers after the OS install, I use the command
>
>
> rpm -Uvh ftp://server/path/to/*.rpm
>
> problem is, the number of rpm files has grown enormously, I am sure a lot
> of them are not being installed.
>
> is there a way to tell which rpms were actually installed, so that i can
> delete the unneeded ones from the ftp server?
>
>
> thanks


# maybe ??
$ rpm -Uvh ftp://server/path/to/*.rpm &> /tmp/rpm_updates.txt \
&& mail -s "updated rpm files " tsiwut@localhost < /tmp/rpm_updates.txt



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com