Redhat-linux package manager-rpm1. 1rpm introduction RPM Package Manager (RPM) is a widely used software package manager in Linux. RPM may be used. rpm file format package may also refer to its own package manager... redhat-linux Package Manager-rpm 1rpm introduction RPM Package Manager (RPM) is a widely used software Package Manager in Linux. RPM this term may refer to. rpm file-format software packages, or its own software Package Manager ). It was first developed by Red Hat and now developed by the open source community.
RPM is usually attached to the Linux release, but it is also released separately as an application software release (such as Gentoo ). RPM is only applicable to the installation of software packaged with RPM. it is currently the most abundant package type of software package resources in GNU/Linux. RPM packages include Binary, Source, and Delta packages. The binary package can be directly installed on the computer, and the source code package will be automatically compiled and installed by RPM. Source code packages often use src. rpm as the suffix. 2rpm syntax: rmp [-qvuie] -Q = query option-v = verifty-u = upgrade-e = eraseQuery options list-q query all packages-c query list al configuration files-d list all documentation files-l list files in package-p query list patches or patched files-f query list packages owning files Verify options list-v verify all packages-k verify packages signatures-t only package can wor or notinstall options list-I install packages upgrade option S list-u upgrade packages -- repackage replace old package with new packages other option list -- initdb initialize rpm database file -- rebuilddb rebuild database list from instal package headers limit 3rpm command rpm five types operation mode: q query, v verification, I installation, e uninstallation, u upgrade, and O others. Check whether an rpm Package is installed with rpm-qa | xxxx. rpm test and verify an rpm package rpm-vt xxxxx. rpm installs an rpm package rpm-I xxxxx. rpm detaches an rpm package rpm-e xxxxx. rpm upgrades an rpm package rpm-u xxxxx. rpm -------------------------------------------------------------------- 1.4rpmbuild command 1.4.1 syntax: rpmbuild [option] [ | | ] Option list-bp: only preparation (decompression and patching)-bc preparation and compilation-bi compilation and installation-bl check file completeness-ba compilation made *. rpm and src. compiled by rpm-bb and made *. rpm-bs is made only *. src. the rpm-tc-ti-ta-tb-ts function is similar, but the required parameter is changed from the spec file to the tar package. 1.4.2create rpmpackage File Unzip download unzip pppoe-3.10.tar.gz?decompress unzip pppoe-3.10.tar.gz tar zxvf rp-pppoe-3.10.tar.gz # Copy. spec and gz files cp/home/rp-pppoe-3.10/rp-pppoe.spec/usr/src/redhat/SOURCES/cp/home/rp-pppoe-3.10.tar.gz/usr/src/redhat/SOURCES/# create rpm package cd/ usr/src/redhat/SOURCES/rpmbuild-bb rp-pppoe.spec <= compile only into RPM file rpmbuild-ba rp-pppoe.spec <= compile and generate both RPM and SRPM files if compilation is successful, the rpm Package for rp-pppoe has been created, check [root @ localhost i386] # pwd/usr/src/redhat/RPMS/i386 [root @ localhost i386] # lltotal 420-rw-r -- r -- 1 root 186322 01-06 rp-pppoe-3.10-1.i386.rpm-rw-r -- r -- 1 root 150356 01-06 rp-pppoe-debuginfo-3.10-1.i386.rpm-rw-r -- r -- 1 root 63319 01-06 rp-pppoe-gui-3.10-1.i386.rpm
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.