- 浏览: 800674 次
- 性别:
- 来自: 哈尔滨
文章分类
最新评论
-
doloveme:
$sudo cp MONACO_Linux.ttf /usr/ ...
terminator 的配置 -
腾讯rep:
lowser
RSA加密算法c++简单实现 -
csuhanyong:
好YD啊,好YD
一图流:机械键盘各轴区别 -
doloveme:
1。其中:extman ,extmail下载http://ww ...
Ubuntu下安装postfix+extmail邮件服务器 -
doloveme:
repo sync出现“fatal: '../platform ...
Android 编译环境配置搭建(Ubuntu 12.04)及环境导致编译错误QA
于是使用rpm --help
查看了
rpm
命令查找帮助。如下所示
[root@localhost ~]# rpm --help
Usage: rpm [OPTION...]
Query options (with -q or --query):
-c, --configfiles list all configuration files
-d, --docfiles list all documentation files
--dump dump basic file information
-l, --list list files in package
--queryformat=QUERYFORMAT use the following query format
-s, --state display the states of the listed files
-a, --all query/verify all packages
-f, --file query/verify package(s) owning file
-g, --group query/verify package(s) in group
-p, --package query/verify a package file
--specfile query a spec file
--whatrequires query/verify the package(s) which require a
dependency
--whatprovides query/verify the package(s) which provide a
dependency
Verify options (with -V or --verify):
--nomd5 don't verify MD5 digest of files
--nofiles don't verify files in package
--nodeps don't verify package dependencies
--noscript don't execute verify script(s)
-a, --all query/verify all packages
-f, --file query/verify package(s) owning file
-g, --group query/verify package(s) in group
-p, --package query/verify a package file
--specfile query a spec file
--whatrequires query/verify the package(s) which require a
dependency
--whatprovides query/verify the package(s) which provide a
dependency
Signature options:
--addsign sign package(s) (identical to --resign)
-K, --checksig verify package signature(s)
--import import an armored public key
--resign sign package(s) (identical to --addsign)
--nodigest don't verify package digest(s)
--nosignature don't verify package signature(s)
Database options:
--initdb initialize database
--rebuilddb rebuild database inverted lists from
installed package headers
Install/Upgrade/Erase options:
--aid add suggested packages to transaction
--allfiles install all files, even configurations
which might otherwise be skipped
--allmatches remove all packages which match <package>
(normally an error is generated if
<package> specified multiple packages)
--badreloc relocate files in non-relocatable package
-e, --erase=<package>+ erase (uninstall) package
--excludedocs do not install documentation
--excludepath=<path> skip files with leading component <path>
--fileconflicts detect file conflicts between packages
--force short hand for --replacepkgs --replacefiles
-F, --freshen=<packagefile>+ upgrade package(s) if already installed
-h, --hash print hash marks as package installs (good
with -v)
--ignorearch don't verify package architecture
--ignoreos don't verify package operating system
--ignoresize don't check disk space before installing
-i, --install install package(s)
--justdb update the database, but do not modify the
filesystem
--nodeps do not verify package dependencies
--nomd5 don't verify MD5 digest of files
--nocontexts don't install file security contexts
--noorder do not reorder package installation to
satisfy dependencies
--nosuggest do not suggest missing dependency
resolution(s)
--noscripts do not execute package scriptlet(s)
--notriggers do not execute any scriptlet(s) triggered
by this package
--oldpackage upgrade to an old version of the package
(--force on upgrades does this
automatically)
--percent print percentages as package installs
--prefix=<dir> relocate the package to <dir>, if
relocatable
--relocate=<old>=<new> relocate files from path <old> to <new>
--repackage save erased package files by repackaging
--replacefiles ignore file conflicts between packages
--replacepkgs reinstall if the package is already present
--test don't install, but tell if it would work or
not
-U, --upgrade=<packagefile>+ upgrade package(s)
Common options for all rpm modes:
-D, --define='MACRO EXPR' define MACRO with value EXPR
-E, --eval='EXPR' print macro expansion of EXPR
--macros=<FILE:...> read <FILE:...> instead of default file(s)
--nodigest don't verify package digest(s)
--nosignature don't verify package signature(s)
--rcfile=<FILE:...> read <FILE:...> instead of default file(s)
-r, --root=ROOT use ROOT as top level directory (default:
"/")
--querytags display known query tags
--showrc display final rpmrc and macro configuration
--quiet provide less detailed output
-v, --verbose provide more detailed output
--version print the version of rpm being used
Options implemented via popt alias/exec:
--scripts list install/erase scriptlets from
package(s)
--setperms set permissions of files in a package
--setugids set user/group ownership of files in a
package
--conflicts list capabilities this package conflicts
with
--obsoletes list other packages removed by installing
this package
--provides list capabilities that this package provides
--requires list capabilities required by package(s)
--info list descriptive information from package(s)
--changelog list change logs for this package
--triggers list trigger scriptlets from package(s)
--last list package(s) by install time, most
recent first
--filesbypkg list all files from each package
--fileclass list file names with classes
--filecolor list file names with colors
--filecontext list file names with security context from
header
--fscontext list file names with security context from
file system
--recontext list file names with security context from
policy RE
--fileprovide list file names with provides
--filerequire list file names with requires
--redhatprovides find package name that contains a provided
capability (needs rpmdb-redhat package
installed)
--redhatrequires find package name that contains a required
capability (needs rpmdb-redhat package
installed)
--buildpolicy=<policy> set buildroot <policy> (e.g. compress man
pages)
--with=<option> enable configure <option> for build
--without=<option> disable configure <option> for build
Help options:
-?, --help Show this help message
--usage Display brief usage message
***************************************************************
在帮助文档的第二十行,发现了一条帮助信息,如下所示:
--nodeps don't verify package dependencies
这个参数的意思是:忽略包之间的依赖性。
哈哈!这就是我要找的功能,真是踏破铁鞋无觅处;得来全不费工夫!说时迟那时快,于是使用rpm -e --nodeps+
包名开始卸载这三个软件。在卸载的过程当中如果没有任何提示说明已经成功卸载。还好!一切万事大吉,现在我就可以开始我的
LAMP
之旅了!
希望这点小经验可以帮助更多迷茫中的人们!
发表评论
-
linux生成指定大小的文件
2015-08-26 16:02 1655# dd if=/dev/zero of=50M.file ... -
恢复 git reset -hard 的误操作
2014-08-30 15:10 857有时候使用Git工作得小心翼翼,特别是涉及到一些高级操作,例如 ... -
安装下载jamesAMES邮件服务器
2014-08-22 14:24 774UBUNTU下的JAMES邮件服务器 下载文件james- ... -
ubuntu james 2.3 部署
2014-08-22 14:23 792参考文章 1、需要用到很多权限和1024下的端口,用roo ... -
E: Sub-process /usr/bin/dpkg returned an error code (1)
2014-08-21 10:40 827Sub-process /usr/bin/dpkg retu ... -
Ubuntu系统如何设置vpn
2014-06-20 09:28 221因为一些原因,我们可能需要使用vpn,很 ... -
部署Exchange2007
2014-06-06 10:02 522Exchange邮件服务器是一个不错的通信消息平台, ... -
ubuntu 挂载(感觉挂载iso相当舒服)
2014-06-03 17:20 916当然首先在/media目录下先新建个文件夹当挂载点先以挂载 ... -
InputStream、OutputStream、String的相互转换
2014-06-03 17:19 5471、字符串转inputStream Java ... -
Windows XP格式化U盘为NTFS的方法
2014-06-03 10:41 740大于4G的U盘,最好将其格式化为NTFS格式,因为FAT3 ... -
google hosts
2014-05-31 11:29 250127.0.0.1localhost 127.0.1.1h ... -
google hosts
2014-05-30 18:03 4#Google Services START203.208.4 ... -
terminator 的配置
2014-05-15 09:15 1374让termintor 文字背景和ubuntu 一样 ... -
Ubuntu下安装postfix+extmail邮件服务器
2014-05-10 12:19 1774系统:ubuntu-10.04.3-server-amd64 ... -
Discuz X2.5 取消登陆密码错误15分钟限制的方法
2014-05-09 15:15 1246个人不推荐取消登录密码错误15分钟后再试的限制,就现在有限制 ... -
Ubuntu下搭建FTP服务器
2014-05-08 19:24 783后台一直提示wordperss版本和插件有更新,看着碍眼,决 ... -
Ubuntu 使用 Discuz搭建论坛
2014-05-08 19:22 7551. 安装LAMP 具体参考http://www.linu ... -
ubuntu 12.04卸载 vmware
2014-05-06 14:27 653在ubuntu 安装玩VMware 9 后,始终卸载不掉,一 ... -
ssh打洞
2014-05-04 22:41 1025目的:要求能在家里或其他外网环境访问在公司内网中我的工作电脑网 ... -
ubuntu无root权限,如何将用户添加到sudo组中去?
2014-05-04 17:21 1861最近下载了debian6.0,在vmware中安装完成之后发 ...
相关推荐
linux yum命令详解
Linux的yum命令使用.doc
yum 命令找不到,快速安装yum centos-yumconf-4-4.5.noarch.rpm python-elementtree-1.2.6-5.el4.centos.x86_64.rpm python-sqlite-1.1.7-1.2.1.x86_64.rpm python-urlgrabber-2.9.8-2.noarch.rpm sqlite-3.3.6-2....
主要介绍了Linux yum 命令安装mysql8.0的教程,本文给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下
linux下如何彻底卸载RPM或yum安装的mysql
linux中使用yum命令的要求: 1. 首先,确定虚拟机连接了iso文件。 然后,挂载光盘到系统目录。 [root@huangdaojin ~]# mount -o loop /dev/cdrom /mnt 2. [root@huangdaojin ~]# vim /etc/yum.repos.d/iso.repo ...
yum命令的使用总结:手动添加了yum 源,安装yum-plugin-fastestmirror(自动挑选快的镜像站)等
对linux下yum是什么,如何使用,如何配置,有何特点,做了比较详细的说明
空的linux环境下如何搭建本地yum源以及编译环境gcc的详细步骤 有了它才可以使用yum、make、install命令
Yum是什么,Yum安装,Yum配置,Yum安装应用,Yum指令详解.
Linux网络之yum仓库_yum 命令.mhtml
在linux下的yum命令详解需要的看看吧很详细的啊
《Linux通过Apt-Get安装Yum命令》是一篇旨在指导Linux用户将Yum包管理器轻松安装到基于Debian或Ubuntu的系统中的文章。Yum是一款功能强大且广受欢迎的包管理器,在CentOS和Fedora等发行版中已经得到广泛应用。本文...
在没有外网的服务器机房环境中,需要用yum命令来安装相关软件时,需要在本地搭建yum环境
本文主要介绍linux下的yum命令原理和详解,讲解的比较全面,需要的朋友可以参考一下。
linux系统下mysql数据库的yum安装教程。可能因linux系统版本,命令上有所区别,对照不同的linux系统,做出相应调整就行。
这是我配置linux系统的时候,安装Java环境以及配置tomcat环境时常用的命令总结起来,亲测可用!欢迎下载使用
Linux详细教程大全之rpm&yum命令
包含包内容: python-iniparse-0.4-9.el7.noarch.rpm python-urlgrabber-3.10-10.el7.noarch.rpm rpm-4.11.3-45.el7.x86_64.rpm rpm-python-4.11.3-45.el7....yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch.rpm
yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器。这篇文章给大家介绍linux 下的yum命令,需要的朋友参考下吧