What does yum mean in linux
Yum in Linux is the abbreviation of Yellow dog Updater Modified; the purpose of yum is to automatically upgrade, install and remove rpm packages, collect information about rpm packages, check dependencies and automatically prompt users to solve them.
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
What is yum in Linux? How to configure? how to use?
yum is the abbreviation of Yellow dog Updater Modified. It was originally developed by yellow dog developer Terra Soft. Written in python, it was still called yup (yellow dog updater) at that time. It was later improved by the Linux@Duke development team at Duke University, hence the name.
The purpose of yum is to automatically upgrade, install/remove rpm packages, collect information about rpm packages, check dependencies and automatically prompt users to solve them.
The key to yum is to have a reliable repository. As the name suggests, this is a software warehouse. It can be an http or ftp site, or it can be a local software pool, but Must include the rpm header. The header includes various information about the rpm package, including description, functions, provided files, dependencies, etc. It is by collecting these headers and analyzing them that the remaining tasks can be completed automatically. .
It can automatically download and install RPM packages from a designated server. It can automatically handle dependencies and install all dependent software packages at once, without the need to download and install them again and again. You can also make a yum server yourself, and you can make a yum server based on the CD image.
Build a yum server:
(1) Local yum (the server cannot access the Internet)
The first step : Mount the CD first
mount /dev/cdrom /media/ echo "/dev/cdrom /media iso9660 defaults 0 0" >> /etc/fstab 实现开机挂载
Step 2: Create a yum warehouse (take centos as an example)
vim /etc/yum.repos.d/iso.repo (iso is Get the name at will, but it must end with repo)
[Centos] name=CentOS baseurl=file:///media/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Then save and exit
(if it is a redhat5.x system, write file:///media/Server/ here, It is the system of redhat6.x file:///media/Packages/)
Explanation of parameters
##### [Centos] (这个是一个标识,可以随便取,必须唯一) name=CentOS (这个是一个名字,可以随便取,必须唯一) baseurl=file:///media/Server/ (本地的路径) enabled=1 (为1则是打开仓库,为0则是关闭仓库) gpgcheck=1 (公钥值) gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 (检测公钥值的文件路径) [ ]内的是仓库的名字 name是仓库的描述也可以说是名字 baseurl 仓库的位置 enabled 是否启用这个仓库,1为起用,0为禁用 gpgcheck 是否检查GPG签名(用来验证要安装的包是不是REDHAT官方的) gpgcheck 的存放地址我们需要用下面的命令导入这个签名。才能使用这项功能 #####
After building yum, first enter
yum clean all
(2) External network yum (the server can access the Internet)
vim /etc/yum.repos.d/163.repo
[base] name=centos6 baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch gpgecheck=1 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
Then save and exit
If the system is 5.x version of redhat (baseurl=http://mirrors.163.com/centos/5/os/$basearch)
When installing yum on the external network, you can go to this website first and have a look
http://mirrors.163.com/
Use yum
First use yum to upgrade the software. Most yum operations require superuser permissions. Of course, you can use sudo.
It is common to add and delete software after installing the system. Yum can also be qualified for this task, as long as the software is installed by rpm.
The installation command is :
yum install xxx
yum will query the database to see if there is this software package. If there is, check its dependency conflict. If there is no dependency conflict, it is best to download and install it; if there is, a prompt will be given asking whether you want to install the dependency at the same time, or delete the conflicting package. You can make your own judgment.
The command to delete is :
yum remove xxx
Same as installation, yum will also query the database and give Tips for resolving dependencies.
Commonly used commands of yum:
1.yum check-update 列出所有可更新的软件清单 2.yum update 安装所有更新软件 3.yum -y install <package_name> 安装指定的软件 4.yum update <package_name> 更新指定的软件 5.yum list <package_name> 不加<package_name>列出所有可安裝的软件清单,加了列出指定的 6.yum -y remove <package_name> 删除软件 7.yum search <package_name> 查找软件 8.yum list installed 列出所有已安装的软件包 9.yum list extras 列出所有已安装但不在 Yum Repository 內的软件包 10.yum info <package_name> 不加<package_name>列出所有软件包的信息,加了列出指定的 11.yum provides <package_name> 列出软件包提供哪些文件 12.yum clean packages 清除缓存目录(/var/cache/yum)下的软件包 13. yum clean all 清除缓存目录(/var/cache/yum)下的软件包及旧的headers
Recommended learning: "linux video tutorial"
The above is the detailed content of What does yum mean in linux. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

DeepSeek is a powerful intelligent search and analysis tool that provides two access methods: web version and official website. The web version is convenient and efficient, and can be used without installation; the official website provides comprehensive product information, download resources and support services. Whether individuals or corporate users, they can easily obtain and analyze massive data through DeepSeek to improve work efficiency, assist decision-making and promote innovation.

There are many ways to install DeepSeek, including: compile from source (for experienced developers) using precompiled packages (for Windows users) using Docker containers (for most convenient, no need to worry about compatibility) No matter which method you choose, Please read the official documents carefully and prepare them fully to avoid unnecessary trouble.

Ouyi OKX, the world's leading digital asset exchange, has now launched an official installation package to provide a safe and convenient trading experience. The OKX installation package of Ouyi does not need to be accessed through a browser. It can directly install independent applications on the device, creating a stable and efficient trading platform for users. The installation process is simple and easy to understand. Users only need to download the latest version of the installation package and follow the prompts to complete the installation step by step.

BITGet is a cryptocurrency exchange that provides a variety of trading services including spot trading, contract trading and derivatives. Founded in 2018, the exchange is headquartered in Singapore and is committed to providing users with a safe and reliable trading platform. BITGet offers a variety of trading pairs, including BTC/USDT, ETH/USDT and XRP/USDT. Additionally, the exchange has a reputation for security and liquidity and offers a variety of features such as premium order types, leveraged trading and 24/7 customer support.

Gate.io is a popular cryptocurrency exchange that users can use by downloading its installation package and installing it on their devices. The steps to obtain the installation package are as follows: Visit the official website of Gate.io, click "Download", select the corresponding operating system (Windows, Mac or Linux), and download the installation package to your computer. It is recommended to temporarily disable antivirus software or firewall during installation to ensure smooth installation. After completion, the user needs to create a Gate.io account to start using it.

Ouyi, also known as OKX, is a world-leading cryptocurrency trading platform. The article provides a download portal for Ouyi's official installation package, which facilitates users to install Ouyi client on different devices. This installation package supports Windows, Mac, Android and iOS systems. Users can choose the corresponding version to download according to their device type. After the installation is completed, users can register or log in to the Ouyi account, start trading cryptocurrencies and enjoy other services provided by the platform.

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Causes and solutions for errors when using PECL to install extensions in Docker environment When using Docker environment, we often encounter some headaches...
