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 yum to see which files are included in the installed package

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly explains "how to use yum to see which files are included in the installation package". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to use yum to see which files are included in the installation package".

Centos7 rpm packages can be viewed via rpm-qlp [package path]

But what are the files installed through the package installed through yum?

The yum command is a rpm-based package manager that automatically downloads and installs rpm packages from a specified server, automatically handles dependencies, and installs all dependent software packages.

Usage: yum (option) (command) (parameter)

Common options:

-h,-- help: displays help information.

-C,-- cacheonly: runs completely from the system cache and does not download.

-c [config file],-- config= [config file]: specify the configuration file location.

-R [minutes],-- randomwait= [minutes]: sets the maximum wait time (minutes) for yum to process a command.

-d [debuglevel],-- debuglevel= [debuglevel]: sets the debug log output level (0-10).

-e [errorlevel],-- errorlevel= [errorlevel]: sets the error log output level (0-10).

-Q,-- quiet: quiet mode.

-v,-- verbose: detailed mode.

-y,-- assumeyes: answer "yes" to all questions.

-- version: displays the version of yum.

-- installroot= [path]: sets the root path of the installation.

-x [package],-- exclude= [package]: excludes one or more packages by name or glob-style wildcards.

-- downloadonly: only download and do not update the installation package.

Common yum commands:

Install: install specified rpm packages (multiple separated by spaces) and dependencies, install all packages without specifying the package name!

Update: update the specified rpm package (multiple packages are separated by spaces). Update all packages that can be updated without specifying the package name!

Check-update: check the list of all rpm packages that can be updated.

Remove/erase: removes the specified rpm package and related dependencies. Special note: yum remove will delete all dependent packages and use it with caution! It is recommended that you use rpm-e to handle dependency deletion.

List: make a list of all installable rpm packages.

Search [str]: query the package containing the specified string and an introduction list.

Info: displays the description and summary information of the specified rpm package

Clean: clean up expired caches

Shell: shell prompt to enter yum

Localinstall: install the local rpm package

Localupdate: displays the local rpm package for update

Deplist: shows all dependencies of the rpm package.

To sum up, there is no mention of which files are installed in the relevant rpm package. Yum info just shows some summary information.

Can't you see which packages are installed? Of course, you need to install the yum-utils package

Yum- y install yum-utils

View via repoquery-ql

As you can see above, the package php70w-7.0.33-1.w7.x86_64 contains / usr/lib64/httpd/modules/libphp7-zts.so, / usr/lib64/httpd/modules/libphp7.so, etc. Many unsuccessful installers of php are missing this.

Thank you for your reading, the above is the content of "how to use yum to see which files are included in the installation package". After the study of this article, I believe you have a deeper understanding of how to use yum to see what files are contained in the installation package. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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

Internet Technology

Wechat

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

12
Report