In Linux, software program bundle administration performs an important function within the seamless operation of a system that entails the set up, upgrading, configuration, and removing of software program packages.
A bundle supervisor is a software program software that automates the administration of software program on a system by simplifying complicated duties resembling set up, upgrading, and removing of software program packages.
On this article, we’ll discover the significance of bundle administration and supply a complete information on examine whether or not a bundle is put in utilizing a bundle supervisor in Linux techniques.
1. Utilizing APT and DPKG (Debian)
On Debian-based techniques resembling Ubuntu and Linux Mint, the APT (Superior Packaging Device) and dpkg (Debian Bundle Supervisor) are important instruments for managing software program packages.
To examine if a bundle is put in with APT or dpkg, you need to use any of the next instructions.
apt record –installed | grep <package-name>
OR
dpkg -l | grep <package-name>
The command lists put in packages utilizing apt or dpkg, and the grep command filters the output to indicate details about a selected bundle.
Change <package-name> with the title of the bundle you wish to examine. If the bundle is put in, you will notice related data; in any other case, there will likely be no output.
2. Utilizing YUM and DNF (RHEL)
On Purple Hat-based techniques resembling CentOS, Fedora, and Rocky and AlmaLinux, the YUM (Yellowdog Updater, Modified) and DNF (Dandified YUM) are essentially the most generally used bundle managers.
To examine if a bundle is put in with yum or dnf, you need to use any of the next instructions.
yum record put in | grep <package-name>
OR
dnf record put in | grep <package-name>
Alternatively, you need to use the rpm command to examine for the presence of a bundle.
rpm -qa | grep <package-name>
3. Utilizing Pacman (Arch Linux)
On Arch Linux-based techniques, resembling Manjaro and Garuda, the Pacman is the default bundle supervisor and to examine if a selected bundle is put in or not, use the next command.
pacman -Q | grep <package-name>
4. Utilizing Zypper (SUSE Linux)
The bundle supervisor used on SUSE Linux distributions, together with openSUSE, is named Zypper and to examine whether or not a bundle is put in utilizing Zypper, you need to use it.
zypper search –installed-only <package-name>
Conclusion
Checking whether or not a bundle is put in by means of a bundle supervisor is a job that varies relying on the system and bundle supervisor you’re utilizing. The instructions offered on this information are basic instructions that can be utilized for particular wants.
Repeatedly verifying the standing of put in packages is an effective observe for system directors and builders alike. It ensures that the required dependencies are current and helps to keep up a safe and well-functioning system.