Package Management
(CentOS, RedHat, Debian)
CentOS, RedHat
1. YUM --> Yellowdog Updater Modified (High Level Tool)
2. RPM --> Red-hat Package Manage (Low Level Tool)
Debian
1. APT --> Advanced Package Tool (High Level Tool)
2. DPKG --> Debian Package (Low Level Tool)
1. YUM (Yellowdog Updater Modified)
• wget This command used to download binary packages.
• yum update This command is used to update all installed packages on the system.
• yum download [package-name] This command is used to download a specific package or multiple packages.
• yum install [package-name] This command is used to install a specific package or multiple packages.
• yum remove [package-name] This command is used to remove a specific package from the system.
• yum autoremove [package-name] This command is used to remove a specific package from the system with
dependency.
• yum list installed This command is used to list all installed packages.
• yum list available This command is used to list all available packages.
• yum deplist [package-name] This command is used to list dependencies of a packages.
2. RPM (Red-hat Package Manage)
• wget This command used to download binary packages.
• rpm –q [package-name] This command used to check package install or not in the system.
• rpm –ivh [package-name] This command used to install package in system.
• rpm –evh [package-name] This command used to uninstall or remove package in system.
• rpm –qi [package-name] This command is used to display information about a specific
package.
• rpm –v [package-name] This command used to check for dependencies issues.
3. APT (Advanced Package Tool)
• wget This command used to download binary packages.
• apt-get update This command is used to update the local package index.
• apt-get install [package-name] This command is used to install a package or multiple packages.
• apt-get remove [package-name] This command is used to remove a package from the system.
• apt-get autoremove This command is used to remove any packages that were installed as
dependencies.
• apt-get purge [package-name] This command is used to remove a package along with its
configuration files.
• apt-cache show [package-name] This command is used to display detailed information about a
package, including its dependencies.
4. DPKG (Debian Package)
• dpkg -i [package-name.deb] This command is used to install a package from a .deb file.
• dpkg -r [package-name] This command is used to remove a package from the system.
• dpkg -L [package-name] This command is used to list all the files that were installed by a
package.