Install and update software packages from the local filesystem:
rpm -ivh mypackage.rpmInstall and update software packages from a remote repository:
rpm -Uvh mypackage.rpm
First let's configure the remote repository. You'll need to create a file with .repo extension on your /etc/yum.repos.d/ directory. A sample such is below. Note that the directory /distro is actually a mounted NFS share.
[nfs]The baseurl field can be an http://, ftp:// or file:// URL.
name=nfs
baseurl=file:///distro/
enabled=1
It's useful to know how to import the gpg key of repository, this can be done with the following command
rpm --import gpgkeyNow you are ready to use yum, which handles dependencies as well and thus is really useful, in their simpler forms, the command are very similar to rpm.
yum install packageInstall and update software packages from Red Hat Network:
yum upgrade package
This is identical to the objective above, except that you need to configure (register?) your server with RHN. You'll need to register to see the client configuration guide
No comments:
Post a Comment