Redhat-linux package manager-rpm

Source: Internet
Author: User
Tags rpmbuild

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] <file>-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 veri Fy all packages-k verify packages signatures-t only package can wor or notinstall options list-I install packages upgrade options 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 --------------------------------------------------------------------------------- ------------------ 3rpm command rpm has five operation modes: q query, v verification, I installation, e uninstall, 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 limit 1.4rpmbuild command 1.4.1 Syntax: rpmbuild [option] [<specfile> | <tarball> | <source package>] option list-bp only preparation (decompression and patching) -bc preparation and compilation-bi compilation and installation-bl check file Completeness-ba compilation and preparation *. rpm and src. compiled by rpm-bb and made *. rpm-bs is made only *. src. rpm-tc-ti-t The a-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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.