Knowledge points of RPMSPEC files

Source: Internet
Author: User
Knowledge about the RPMSPEC File: The execution sequence of the RPM package SPEC file and the passed value: the actual value passed during installation: % pre (1) of the new package) install the new file and run the new package's % post (1) Here is the value passed during the upgrade: run the new package's % pre... some knowledge about the rpm spec file: the actual value passed during installation: % pre (1) of the new package) install new file run new package % post (1) Here is the value passed during upgrade: run new package % pre (2) install new file run new package % post (2) run % preun (1) of the old package to delete % postun (1) of the old package that is not overwritten by the new file. here is the value passed during the deletion: % preun (0) of the old package run delete the macro definition in % postun (0) SPEC of the file running the old package: [plain] RPM primary Des a host of built-in ma Cros, including the following useful directories: % _ prefix/usr % _ exec_prefix % {_ prefix} % _ bindir % {_ exec_prefix}/bin % _ sbindir % {_ exec_prefix}/sbin % _ libexecdir % {_ exec_prefix }/libexec % _ datadir % {_ prefix}/share % _ sysconfdir % {_ prefix}/etc % _ sharedstatedir % {_ prefix}/com % _ localstatedir % {_ prefix }/var % _ libdir % {_ exec_prefix}/lib % _ includedir % {_ prefix}/include % _ oldincludedir/usr/include % _ info Dir % {_ prefix}/info % _ mandir % {_ prefix}/man The example directories shown above come from the standard RPM macro file,/usr/lib/rpm/macros, instead of the Red Hat-specific file,/usr/lib/rpm/redhat/macros, which holds: % _ prefix/usr % _ sysconfdir/etc % _ localstatedir/var % _ infodir/usr/share/info % _ mandir/usr/share/man % _ initrddir % {_ sysconfdir }/rc. d/init. d % _ defadocdocdir % {_ usr}/share/doc all variables You can find them in the/usr/lib/rpm/macros file.
 
Related Article

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.