In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install software from the Linux command line, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
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 come from Red Hat and Debian. Red Hat, CentOS, and Fedora all use the rpm system (.rpm files), while Debian, Ubuntu, Mint, and Ubuntu all use dpkg (.deb files). Gentoo Linux uses a system called Portage, and Arch Linux uses only tarball (.tar files). The main difference between these systems is how they install and maintain applications.
You may want to know the contents of .rpm, .deb, or .tar files. You may be surprised to find that all of these are just plain old-fashioned archives (such as .zip) containing the application's code, instructions on how to install it, dependencies (other applications it may depend on), and the location of the configuration file. The software that reads and executes all these instructions is called the package manager.
Debian, Ubuntu, Mint, etc.
Debian, Ubuntu, Mint, and other Debian-based distributions all use .deb files and dpkg package management systems. There are two ways to install applications through this system. You can use the apt program to install from the repository, or you can use the dpkg program to install applications from .deb files. Let's see how to do these two things.
Installing an application using apt is very simple:
$sudo apt install app_name
It is also very easy to uninstall the application through apt:
$sudo apt remove app_name
To upgrade an installed application, you first need to update the application repository:
$sudo apt update
When you are finished, you can update any program with the following command:
$sudo apt upgrade
What if you only want to update one application? No problem.
$sudo apt update app_name
* assume that the application you want to install does not exist in the Debian repository, but .deb is available for download.
$sudo dpkg-I app_name.debRed Hat, CentOS and Fedora
By default, Red Hat uses multiple package management systems. These systems are still very similar to each other when using their own commands, and similar to those used in Debian. For example, we can use yum or dnf Manager to install the application.
$sudo yum install app_name$ sudo dnf install app_name
Applications in .rpm format can also be installed using the rpm command.
$sudo rpm-I app_name.rpm
It's just as easy to delete unwanted applications.
$sudo yum remove app_name$ sudo dnf remove app_name
Updating applications is equally easy.
Yum update$ sudo dnf upgrade-refresh Thank you for reading this article carefully. I hope the article "how to install Software from the Linux Command Line" shared by the editor will be helpful to you. At the same time, I hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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: 0
*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.