Common Centos software package management commands

Source: Internet
Author: User
Files contained in the installed software package: 12dpkg-Lmysql-serverrpm-qlmysql-server. find the local software package that the file belongs to: 12

Files contained in the installed software package:

12
dpkg -L mysql-serverrpm -ql mysql-server

Find the local software package of the file:
12
dpkg -S /usr/bin/mysqlrpm -qf /usr/bin/mysql

Find the software package for which the file belongs to the network Source:
1234
yum whatprovides */bin/mysqlyum whatprovides *mysqlapt-file search /usr/bin/mysqlapt-file search mysql

List the files of the network source package:
123
yum install yum-utilsrepoquery -ql mysql-serverapt-file list mysql-server

List the files contained in the local software package:
12
rpm -qlp mysql-server.rpmdpkg -c mysql-server.deb

List locally installed software packages:
12
rpm -qadpkg -l

View the dependency of the software package:
123
yum deplist vim-enhancedapt-rdepends vimapt-cache rdepends vim

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.