1. RPM Software Installation
[Root@eurasiaxz ~]# RPM-IVH iscsi-initiator-utils-6.2.0.873-2.el6.x86_64
options and Parameters:
-i:install meaning-
V: Verbose view installation details
-h:hash Show installation Progress
2, RPM software query
[Root@eurasiaxz ~]# Rpm-qa | grep iSCSI --> queries the package containing the keyword "iSCSI" in all installed software
iscsi-initiator-utils-6.2.0.873-2.el6.x86_64
Iscsi-initiator-utils-devel-6.2.0.873-2.el6.x86_64
[root@eurasiaxz ~]# rpm-ql iscsi-initiator-utils-6.2.0.873-2.el6.x86_64 to list all files and directories in this software
Part name (list)/ETC/NETWORKMANAGER/ETC/NETWORKMANAGER/DISPATCHER.D/ETC/NETWORKMANAGER/DISPATCHER.D/04-ISCSI/ETC/ISCSI /etc/iscsi/iscsid.conf/etc/logrotate.d/iscsiuiolog/etc/rc.d/init.d/iscsi/etc/rc.d/init.d/iscsid/sbin/brcm_ iscsiuio/sbin/iscsi-iname/sbin/iscsiadm/sbin/iscsid/sbin/iscsistart/sbin/iscsiuio/usr/lib64/libiscsi.so.0/usr/ lib64/python2.6/site-packages/libiscsimodule.so/usr/share/doc/iscsi-initiator-utils-6.2.0.873/usr/share/doc/ iscsi-initiator-utils-6.2.0.873/readme/usr/share/man/man8/iscsi-iname.8.gz/usr/share/man/man8/iscsiadm.8.gz/ usr/share/man/man8/iscsid.8.gz/usr/share/man/man8/iscsistart.8.gz/usr/share/man/man8/iscsiuio.8.gz/var/lib/
Iscsi/var/lib/iscsi/ifaces/var/lib/iscsi/isns/var/lib/iscsi/nodes/var/lib/iscsi/send_targets/var/lib/iscsi/slp /VAR/LIB/ISCSI/STATIC/VAR/LOCK/ISCSI
[Root@eurasiaxz ~]# rpm-qc iscsi-initiator-utils-6.2.0.873-2.el6.x86_64 --> Lists all of the configuration files for the software, which identifies the configuration file (config) in the ETC directory
/etc/iscsi/iscsid.conf
[Root@eurasiaxz ~]# rpm-qd iscsi-initiator-utils-6.2.0.873-2.el6.x86_64 --> lists all the documentation for the software. That is, find the file associated with man (documentation)
/usr/share/doc/iscsi-initiator-utils-6.2.0.873/readme
/usr/share/man/man8/ iscsi-iname.8.gz
/usr/share/man/man8/iscsiadm.8.gz
/usr/share/man/man8/iscsid.8.gz
/usr/share/man/ man8/iscsistart.8.gz
/usr/share/man/man8/iscsiuio.8.gz
[root@eurasiaxz ~]# rpm-qr iscsi-initiator-utils-6.2.0.873-2.el6.x86_64 lists the dependent packages associated with the software (--> Red)/bin/sh/bin/sh/bin/sh/sbin/ldconfig/sbin/service chkconfig chkconfig config (iscsi-initiator-utils) = 6.2.0.873-2.el6 libc.so.6 () (64bit) libc.so.6 (glibc_2.2.5) (64bit) libc.so.6 (glibc_2.3) (64bit) libc.so.6 (glibc_2.3. 3) (64bit) libc.so.6 (glibc_2.3.4) (64bit) libc.so.6 (glibc_2.4) (64bit) libc.so.6 (glibc_2.7) (64bit) libdl.so.2 () (64bit ) libiscsi.so.0 () (64bit) libpthread.so.0 () (64bit) libpthread.so.0 (glibc_2.2.5) (64bit) libpthread.so.0 (glibc_2.3.2) (64bit) libpthread.so.0 (glibc_2.3.3) (64bit) libpython2.6.so.1.0 () (64bit) python (abi) = 2.6 Rpmlib (compressedfilename s) <= 3.0.4-1 rpmlib (filedigests) <= 4.6.0-1 rpmlib (payloadfileshaveprefix) <= 4.0-1 rtld (GNU_HASH) rpmlib (Payl OADISXZ) <= 5.2-1
[Root@eurasiaxz ~]# rpm-qf/var/lib/iscsi/send_targets --> by the name of the file that follows, find out which software
is installed with the file Iscsi-initiator-utils-6.2.0.873-2.el6.x86_64
3. RPM Package Uninstall
[Root@eurasiaxz ~]# Rpm-qa | grep iSCSI --> Query packages that contain the "iSCSI" keyword
iscsi-initiator-utils-6.2.0.873-2.el6.x86_64
Iscsi-initiator-utils-devel-6.2.0.873-2.el6.x86_64
[Root@eurasiaxz ~]# rpm-e--nodeps iscsi-initiator-utils-6.2.0.873-2.el6.x86_64
[root@eurasiaxz ~]# rpm-qa | grep i SCSI
iscsi-initiator-utils-devel-6.2.0.873-2.el6.x86_64
1), call Rpm-e < package name > Delete specific RPM package,
2, if encountered dependency, Unable to delete, use RPM-E--nodeps < pack name > do not check dependencies, delete rpm package directly;
3 If there are multiple packages called the same name, use RPM-E--allmatches--nodeps < package name > Deletes all packages of the same name and ignores dependencies.