Redhat rpm in Text Mode

Willem van der Walt<willem@top.health.gov.za> willem at top.health.gov.za
Wed May 19 11:45:49 UTC 2004


rpm commands:
I do not have enough time now, but here are a few commands.
rpm -ihv package.rpm
Will install the package contained in the file package.rpm
rpm -Uhv package.rpm will do the same but, will update the ;package if it 
is there
already.
rpm -ihv package.rpm --aid
will install dependent packages that it can find in the same dir as the 
file
you want to install.
For keeping your system up to date with patches etc, man up2date on redhat 
up to
version 9 or the new rel versions or man yum if you actually run fedora.
rpm -qi lynx 
should show you if lynx is installed and if its there, some extra info.
hth
Willem

On Wed, 19 May 2004, Martin McCormick wrote:

> 	I just got introduced to a redhat system that I am going to
> need at work to run some applications.  I am familiar with Debian and
> its dselect utility for managing Debian packages, but I don't yet know
> rpm for doing similar things in redhat.  It does look, from the
> manual, a lot like dselect, but I haven't hit the magic syntax yet for
> making it hit its default download sites to look for packages.  What I
> am trying at first is to get ntpd working.  If I use the command
> 
> rpm -i ntpd
> 
> it just tells me it can't find the file.  Yup that's the whole idea.
> It needs to find the package and install it.
> 
> 	The manual also says that you can state the file name as a URL
> or ftp link, but I bet there is a function like apt that has a list of
> preferred sources that are checked for the main treasure trove of
> redhat packages.  I shouldn't have to know the url unless it is not
> part of the normal redhat network.
> 
> 	Any suggestions are appreciated so I can more or less get
> going here and not waste so much time looking for the power button so
> to speak.
> 
> 	Are there any of the text commands for rpm that are
> particularly good to know?  I was really happy to learn a couple of
> years ago that you could use the / in dselect's user interface to
> locate packages whose names you might partly know.  It has certainly
> made getting new packages a snap in Debian.
> 
> 	Many thanks to all.
> 
> Martin McCormick WB5AGZ  Stillwater, OK 
> OSU Information Technology Division Network Operations Group
> 
> 
> _______________________________________________
> Blinux-list mailing list
> Blinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
> 





More information about the Blinux-list mailing list