rpm question...
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat RPM > rpm question...




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    rpm question...  
tsiwut@yahoo.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-08-05 07: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






[ Post a follow-up to this message ]



    Re: rpm question...  
Moe Trin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: rpm question...  
phazr


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-09-05 10: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








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:19 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register