1. Understanding the Application
Application (APP): software that installs specific features on the OS.
Application type: *.rpm (redhat branch default software format), *.deb (Debian branch default software format), source code (common software format, is also the basis for generating RPM and Deb), other self-installing programs and free installation software.
Common directories for user programs:/etc,/var/log (log files),/usr/share/doc/(documentation),/usr/bin (storing commands that can be run)
2.RPM Management Commands
1) Understanding rpm
A.RPM is Redhat introduced the package management mechanism, the role is to use data recording software additions and deletions and other information to facilitate maintenance, can automatically analyze the dependencies between software, easy to install software.
Format of the B.RPM software:
Name of the software-version-number of releases-os platform-hardware platform (32, +). rpm
I386/i586/i686=32 bit
X86_64=64 bit
2) RPM Query function:
Syntax: rpm-q[sub-options] [package]
Case:
Rpm-qa |grep Man # #查看man软件是否安装,-a lists all installed software
Rpm-qi Tar # #查看软件信息
RPM-QL Tar # #列出tar软件安装的所有的文件及目录-L lists the file directories of the software
RPM-QC VSFTPD # #只列出vsftpd软件的配置文件
RPM-QD VSFTPD # #只列出vsftpd软件的document (document)
Which Useradd # #查找命令的位置
RPM-QF $ (which useradd) # #查看命令由那个软件包安装, commands can be replaced with arbitrary external commands, but with RPM-QL, and man extended learning
3) RPM Installation Upgrade Uninstall:
Syntax: RPM [Options] Package
Case:
MOUNT/DEV/CDROM/MNT # #先放系统ISO, link after the Mount system CD is executed
LS/MNT # #验证, Packages package storage location, Repodata repository file, image and other boot files
Rpm-ivh/mnt/packages/vsftpd-tab # #安装vsftpd软件,-I for installation, VH display details
Rpm-e VSFTPD # #卸载vsftpd软件,-e means unload
Rpm-f/mnt/packages/vsftpd-tab Padded # #更新软件, no installation give up
Rpm-qa VSFTPD # #验证
Rpm-u/mnt/packages/vsftpd-tab # #升级软件, installation is not installed
Rpm-qa VSFTPD # #验证
4) Special usage of RPM
--force: Forced installation, when the software is installed but the file is missing reload, the old overwrite the new version is used.
--nodeps: Ignore dependencies, use when uninstalling.
--import: Import the system ISO public key.
--INITDB/--REBUILDDB: Rebuilds the RPM database, which is used when the virus in the system destroys the RPM data.
Case:
Rpm-ivh/mnt/packages/vsftpd-tab-Padded
RM-RF/ETC/VSFTPD # #模拟文件丢失
Rpm-ivh/mnt/packages/vsftpd-tab Padded--force # #强制安装恢复文件
Rpm-e Vim-common--nodeps # #忽略依赖关系卸载
RPM--import/etc/pki/rpm-gpg/* # #导入系统公钥 to ensure the security of the installation software
RPM--initdb # #重建rpm数据库
"Linux Basics" RPM Installer and Management