Please enable JavaScript.
Coggle requires JavaScript to display documents.
Managing Packages (Manage Packages using RPM (Package (A collection of…
Managing Packages
-
Upgrade Packages
One aspect of system administration is keeping the software updated. RPM has the ability of quickly and easily upgrade software packages. This saves the task of having to uninstall and install a package.
Upgrade
- Download the updated package. 2. Update the existing package using rpm -Uvh {package name}. 3. To verify update use rpm -qi {package name}.
Freshen
- Download the updated package. 2. Freshen the existing package using rpm -Fvh {package name}. 3. To verify freshen use rpm -qi {package name}.
Manage Shared Libraries
Shared Library
File that contains routines which are used by various applications. They are loaded into memory by the OS when required. They are then shared with other applications.
Executable Program
A file in a format that a computer can directly execute. Cannot be ready by humans because they are not plain text files and are compiled. Used to perform various functions or operations on a computer.
Install Library Files
- Log in as root. 2. To identify the library files required for a package to be installed enter rpm -qpR {package file name}. 3. To update the locate command db enter updatedb. 4. To verify the library files enter locate {library file name}. 5. Install the necessary files with rpm -ivh {package file name}.
Verify Packages
RPM Verification
Compares the existing packages with the RPM package database and returns missing or corrupt packages.
If everything is okay no messages will be displayed and you return to command prompt. If a problem is detected an eight character string is displayed to alert you of the change.
How to verify packages
- Log in as root. 2. Verify installed packages. 2.a Verify all packages with command rpm -Va. 2.b Verify individual package using rpm -Vv {package name}. 2.c Verify specific file in package use rpm -V -f {file name} | -p {package name}.
Configure Repositories
Repository
Is a database that holds source code and compilations of Linux software and applications. Software can be installed on a system only when repositories for the software are present on the system. The packages for the software are found in their respective repositories and are directly installed from them. There are two types; local and online.
Local
Also known as private repositories, they are stored on a system. The process of updating systems is greatly facilitated by repositories because the source files are readily available.
Online
These type of repositories are found on the internet. Packages can be directly downloaded from the internet and installed on a system.
-