查看已安装的rpm包列表(to see a list of installed rpm packages):
rpm -qa
安装rpm包(to install an rpm (must be root)):
rpm -vhi myfile.rpm
卸载rpm包(to uninstall an rpm (must be root)):
rpm -e rpmpackagename
升级已有的rpm包(to upgrade an rpm (must be root)):
rpm -vhU myfile.rpm
产看已安装的rpm包含的文件(to see a list of files in an installed rpm):
rpm -ql rpmpackagename
产看rpm包中包含的文件(to see a list of files in an rpm file):
rpm -qpl myfile.rpm
阅读(651) | 评论(0) | 转发(0) |