Last Updated on May 15, 2021 by Vikash Ekka
|Linux repository and package|
The contents of control file inside a Package are:
- Package Name and version Number
- Architecture support like 1386 (32-bit) or i686 (64bit)
- Installed Size and location
- Dependencies, Homepage and Description.
There are 2 types of Packages, they are:
Linux Package Manager:
Different Package managers:
The various package managers are:
RPM- Red Hat linux Package Manager:
There are four basic modes in RPM command, they are:
2. Remove (e)- is used to erase or remove any RPM package
4. Verify (q)-is used to query and verify about different RPM packages.
The table above lists some of the commands and their corresponding description.
|# rpm ivh <package_name>||Install a rpm software package|
|# rpm -qpR <package_name>||Check dependencies of RPM Package before installation|
|# rpm -ivh –nodeps <package_name>||Install RPM package without dependencies|
|# rpm -qa –last||To list recently installed RPM packages|
|# rpm -Uvh <package_name>||To upgrade a RPM package|
|# rpm -evv <package_name>||To remove a RPM package|
YUM (Yellowdog Updater Modified) Package Manager
YUM (Yellowdog Updater Modified) is an open source command-line as well as graphical based package management tool for RPM (RedHat Package Manager) based Linux systems.
It allows users and system administrators to easily install, update, remove or search software packages on a system.
Take a look at the table showing commands and description for YUM
|# yum install <package_name>||Install a package by using YUM, this command asks for confirmation|
|# yum-install <package name>||Install a package automatically without asking confirmation|
|# yum remove <package_name>||Remove package with all its dependencies|
|# yum update <package_name>||Update a package using YUM|
|# yum repolist all||To display all enabled and disabled yum repositories|
|# yum history||To view history of YUM|