Re: how to add a package

Stephen Bailey (bailey@physics.harvard.edu)
Sat, 30 Jan 1999 19:01:47 -0500 (EST)

rpm has a variety of very handy features for checking which files
belong to which packages and which packages are installed. Read
the rpm man page or borrow a copy of the RedHat manual for details,
but here are two commands (qf == query file and qa == query all)
run on a working 5.0.2 installation that hopefully will tell you
what you need.

harv1:/home/bailey> rpm -qf /usr/sbin/rpc.nfsd
nfs-server-2.2beta29-7
harv1:/home/bailey> rpm -qf /etc/rc.d/init.d/nfs
nfs-server-2.2beta29-7
harv1:/home/bailey> rpm -qa | grep nfs
nfs-server-2.2beta29-7
nfs-server-clients-2.2beta29-7

Happy installing.

Stephen

PS Sorry I didn't install these with the rest of the packages;
I hadn't realized that we needed these to export automounted disks.

On Sat, 30 Jan 1999, Petar Maksimovic wrote:

> Hi all,
>
> it turned out that on one of our machines (harv5) the nfs package
> (files like /usr/sbin/rpc.nfsd, and /etc/rc.d/initd./nfs) was not
> installed. I don't know how it happened (we didn't notice until I
> tried to automount a data disk today), but anyway, it should be pretty
> simple to fix this. However, I need an advice on how to do it properly.
>
> My current guess is that using rpm to pull the appropriate package
> from linux-rep.fnal.gov would do the job, except that I'm confused
> about which rpm is the right one: the search for "*nfs*.rpm" in
> http://linux-rep.fnal.gov/cgi-bin/locate.pl returns about 20 versions,
> flavors, or pieces of nfs, out of which a couple sound quite
> reasonable.
>
> I would appreciate if someone can just tell me which is the default
> one (the one that comes with the FRH 5.0.2).
>
> Thanks!
>
> Petar
>