In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
What is a package management system?
The package management system consists of a set of tools and file formats that are used together to install, update, and uninstall Linux applications.
The two most common package management systems are Red Hat and Debian. Ret Het, CentOS and Fedora all use RPM(.rpm files), Debian, Ubuntu and Mint use DPKG(.deb files).
Gentoo Linux uses a system called Portage, Arch Linux uses only TARBALLS (.tar files). The main difference between these systems is the way they install and maintain applications.
You might wonder what's in the.rpm,.db, or.tar file. You might be surprised to find that all of these files are just plain old archive files (like.zip) that contain the application code, instructions on how to install it, dependencies (which other applications it might depend on), and where configuration files should be located. The software that reads and executes all these instructions is called a package manager.
Debian, Ubuntu, Mint, etc.
Debian, Ubuntu, Mint, and other Debian-based distributions all use.deb files and the DPKG package management system. There are two ways to install an application through this system: you can install an application from a repository using the APT application, or you can install an application from a.deb file using the DPKG application.
Instructions for installing an application using apt are as follows:
$ sudo apt install app_name1
The instructions to uninstall an application using apt are as follows:
$ sudo apt remove app_name1
To upgrade an installed application, you first need to update the application repository with the following command:
$ sudo apt update1
When the update is complete, update all applications using the following command:
$ sudo apt upgrade1
If you only want to update one app, enter the following command:
$ sudo apt update app_name1
Finally, assuming that the application you want to install is not available in the Debian repository, it can be downloaded as.DEB. The order reads as follows:
$ sudo dpkg -i app_name.deb
Red Hat, CentOS, Fedora
By default, Ret Hat uses multiple package management systems. Although these systems use their own commands, there are still many similarities, and Debian uses the same command.
For example, we can install applications using yum or dnf managers. The order reads as follows:
$ sudo yum install app_name$ sudo dnf install app_name12
Applications in.rpm format can also be installed using the rpm command:
$ sudo rpm -i app_name.rpm1
The command to delete an application is as follows:
$ sudo yum remove app_name$ sudo dnf remove app_name12
The upgrade procedure can be implemented by the following instructions:
$ yum update$ sudo dnf upgrade --refresh22
The above is the linux system software installation, uninstall and update details, more please pay attention to other related articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 209
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.