Your cart
  • IMG
    {{cart_item.name}}
    {{cart_item.variation_attribute_name}}: {{cart_item.variation_attribute_label}}
    {{cart_item.item_unit}}: {{ setCurrency(cart_item.price)}}
    {{ setCurrency(cart_item.price*cart_item.quantity)}}
    Invalid quantity more than stock
Total :
{{setCurrency(cart.sub_total)}}

There is no item in the cart. If you want to buy, Please click here.

apt, yum, dnf, dpkg and rpm

Complete guide to start Linux OS and install essential applications in Linux

Created by :
Linux
tutorial
Programming, Software and application
1416
2022-01-09 18:30:29

apt: 

apt (Advanced Packaging Tool) is a Shell front-end package in Debian and Ubuntu Manager. apt is a high-level package manager for Debian and derivatives, and provides a simple way to retrieve and install packages, including dependency resolution, from multiple sources using the command line. Unlike dpkg, apt-get does not work directly with *.deb files, but with the package proper name.


Debian Family Systems are  1. MX Linux · 2. Linux Mint · 3. Ubuntu · 4. Pop! OS · 5. Elementary OS · 6. Zorin OS · 7. KDE Neon · 8. Deepin, 9. Kali Linux, 10. Parrot

 

For Debian / Ubuntu:

sudo apt update

yum:

yum (Yellow dog Updater, Modified) is a web service in Fedora, RedHat and SUSE Shell Front End Package Manager. yum adds the functionality of automatic updates and package management with dependency management to RPM-based systems. As a high-level tool, like apt-get or aptitude, yum works with repositories.


CentOS, Linux XP, Oracle Linux, Miracle Linux, ClearOS, Amazon Linux 2 are Fedora based distro and they use yum to manage packages.

Some yum commands are:

yum -y install firefox

yum -y remove firefox

 

yum check-update

 

dnf:

dnf is a software package manager that installs, updates, and removes packages on Fedora and is the successor to YUM (Yellow-Dog Updater Modified).

 

DNF which stands for Dandified yum is an updated version of yum. it is work the same as yum. DNF manages the installation, updating, and removal of the software packages with more features in a RedHat-based Linux system.

 

For Rocky / Fedora / RHEL:

dnf check-update

 

dpkg: 

"dpkg" is short for "Debian Packager". dpkg is a low-level package manager for Debian-based systems. It can install, remove, provide information about and build *.deb packages but it can’t automatically download and install their corresponding dependencies.

 Check If the Package Installed

To check whether a package is installed, use the -s tag:

dpkg -s <package>

For example:

dpkg -s cowsay

 

rpm: 

rpm(Redhat Package Manager) is the package management system used by Linux Standard Base (LSB)-compliant distributions for low-level handling of packages. Just like dpkg, it can query, install, verify, upgrade, and remove packages, and is more frequently used by Fedora-based distributions, such as RHEL and CentOS.

 

To check an Installed RPM Package

 

rpm -q BitTorrent

pkg

 pkg provides an interface for manipulating packages: registering, adding, removing and upgrading packages. pkg-static is a statically linked vari- ant of pkg typically only used for the initial installation of pkg. There are some differences in functionality.

 For FreeBSD Packages:
sudo pkg update