已安装的软件包包含的文件:
1 2 | dpkg -L mysql-server rpm -ql mysql-server |
查找文件属于本地哪个软件包:
1 2 | dpkg -S /usr/bin/mysql rpm -qf /usr/bin/mysql |
查找文件属于网络源哪个软件包:
1 2 3 4 | yum whatprovides * /bin/mysql yum whatprovides *mysql apt- file search /usr/bin/mysql apt- file search mysql |
列出网络源软件包的文件:
1 2 3 | yum install yum-utils repoquery -ql mysql-server apt- file list mysql-server |
列出本地软件包所包含的文件:
1 2 | rpm -qlp mysql-server.rpm dpkg -c mysql-server.deb |
列出本地已安装的软件包:
1 2 | rpm -qa dpkg -l |
查看软件包的依赖关系:
1 2 3 | yum deplist vim-enhanced apt-rdepends vim apt-cache rdepends vim -------------------------
|
No comments:
Post a Comment