Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the Linux yum command

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to use Linux yum command", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let Xiaobian take you to learn "how to use Linux yum command"!

preface

yum (Yellow dog Updater, Modified) is a Shell front-end package manager for Fedora and RedHat and SUSE.

Based on RPM package management, RPM packages can be automatically downloaded and installed from specified servers, dependencies can be automatically handled, and all dependent software packages can be installed at one time without cumbersome downloading and installation.

Yum provides commands to find, install, and delete a package, a group, or even all of them, and the commands are simple and easy to remember.

yum query command

Use yum to perform query operations on software packages. Common commands can be divided into the following:

1. yum list: Query all installed and installable packages. Examples are as follows:

[root@localhost yum.repos.d]# yum list

#Query list of all available packages

Installed Packages

#Installed packages

ConsdeKit.i686 0.4.1-3.el6

@anaconda-CentOS-201207051201 J386/6.3

ConsdeKit-libs.i686 0.4.1-3.el6 @anaconda-CentOS-201207051201 J386/6.3

... omitting part of the output...

Available Packages

#Also installable packages

389-ds-base.i686 1.2.10.2-15.el6 c6-media

389-ds-base-devel.i686 1.2.10.2-15.el6 c6-media

#Software name version location (CD)

... omitting part of the output...

2. yum list package name: query the installation status of the execution package. Examples are as follows:

[root@localhost yum.repos.d]# yum list samba

Available Packages samba.i686 3.5.10-125.el6 c6-media

#Query samba package installation

3. yum search keyword: means to find all packages related to the keyword from the yum origin server. Examples are as follows:

[root@localhost yum.repos.d]# yum search samba

#Search for all samba related packages on the server

========================N/S Matched:

samba =============================

samba-client.i686:Samba client programs

samba-common.i686:Files used by both Samba servers and clients

samba-doc.i686: Documentation for the Samba suite

... omitting part of the output...

Name and summary matches only, use"search all" for everything.

4. yum info package name: Query the details of the execution package. Examples are as follows:

[root@localhost yum.repos.d]# yum info samba

#Query Samba package information

Available Packages

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report