RPM Packages on SuSE and Red Hat

Red Hat is slightly different from SuSE

3/20/2017

SuSE

To Install all of the RPM Packages Manually - SuSE

1) Log in as root. 2) CD to the directory wherein you have saved the packages to be installed. For example: cd /tmp/updates 3) Optionally Turn off the NetWork if you don't want other users on while you update 4) rpm -Uvh * (-U = removes the currently installed package, if it exists - same as Red Hat v =Verifies installed or selected package or package - same as Red Hat) NOTE: "-h" is not a valid option for Red Hat RPM. If an older package is found, RPM will upgrade it, otherwise it will install the new package. rpm will go through all of the packages and install them.

Use YaST To Install the RPM Packages Automatically - SuSE

1) Run YaST, choosing Chose/Install packages 2) Choose Install Packages 3) Tell YaST from where to get your packages. At the Source: (None) field, press Enter to get a list of the installation sources YaST can use. 4) Choose Directory, and type in the path to the directory that contains your new RPMs, which in this case is /tmp/updates. YaST will load the names of all of the RPMs it finds in that directory. 5) To install an RPM, simply mark an "X" next to its name, using the spacebar. 6) press F10 to start installing the RPMs.

Querying (checking) to See What Packages are Installed - SuSE

1) rmp -q -a -i NOTE: This will produce a lot of output, so pipe it through some filter or into a specified file.

Listing Package Changes - SuSE

rpm --changelog -qp .rpm

Red Hat

To Install all of the RPM Packages Manually - Red Hat

rpm -ihv *.rpm

Querying (checking) to See What Packages are Installed - Red Hat

1) rpm -qa See also: Using TAR Updates in the lab

OTHER INFORMATION