Differences between. tar.gz files and. rpm Files

Source: Internet
Author: User

Binary distribution of Linux software refers to the release form of a package that has been compiled in advance in binary form, with the advantage that installation is easy to use, the disadvantage is lack of flexibility, and if the package is compiled for a specific hardware/operating system platform, it cannot be executed correctly in another platform or environment.

1, *.rpm form of binary package

Installation: Rpm-ivh *.rpm

Uninstall: Rpm-e Packgename

Description: RPM (RedHat packge Manager) is a software package manager for RedHat, which makes it easy to install, upgrade, uninstall, verify, query, and so on in RPM-form packages, with simple installation It is also possible to remove the files that are installed in multiple directories when uninstalling, so it is recommended that beginners use the RPM-style software package whenever possible. RPM parameters in the-I is installed,-V is the checksum,-H is a hash to display the installation progress, *.RPM is the package file name (here *.rpm refers to *). src.rpm other than RPM); The parameter-E is the removal of the package, Packgename is the package name, which differs from the file name of the package, which is often the string that precedes the version number in the file name, such as apache-3.1.12-i386.rpm and apache-devel-3 .1.12-i386.rpm is the package file name, and their package names are Apache and Apache-devel, respectively. For more RPM parameters, refer to the man rpm page:



2, *.tar.gz/*.tgz, *.bz2 form of binary package

Installation: Tar zxvf *.tar.gz or tar yxvf *.bz2

Uninstall: Delete manually

Note: Binary packages in *.tar.gz/*.bz2 form are packaged with the TAR tool, compressed with GZIP/BZIP2, and unpacked directly when installed. For only a single directory after decompression software, uninstall with the command "RM-RF software directory Name"; If the files are scattered in multiple directories, you must one by one manually delete (slightly troublesome), you want to know what files are installed to the system when extracting, you can use the command "tar ztvf *.tar.gz"/"tar YTVF *.bz2 "Get the list. The parameter z of TAR is called gzip decompression, X is unpacked, V is checksum, F is the display result, Y is called bzip2 decompression, and T is the list of files listing packages. For more parameters Please refer to man tar.

If you prefer the operation of the graphical interface, you can use KDE's Ark compression file management tool under X-window.



============================================
The distribution of the source code of the Linux software refers to the release form of all the program sources of the software, which requires the user to compile the executable binary code and install it, the advantage is that the configuration is flexible, can remove or retain certain functions/modules, adapt to a variety of hardware/operating system platform and compiling environment, the disadvantage is difficult , generally not suitable for beginners to use.

1, *.src.rpm form of source code package

Installation: Rpm-rebuild *.src.rpm

Cd/usr/src/dist/rpms

RPM-IVH *.rpm

Uninstall: Rpm-e Packgename

Description: The rpm--rebuild *.src.rpm command compiles the source code and generates a binary RPM package under/usr/src/dist/rpms, and then installs the binary package. Packgename as mentioned earlier.

2, *.tar.gz/*.tgz, *.bz2 form of source code package

Installation: Tar zxvf *.tar.gz or tar yxvf *.bz2 first unzip

Then go to the extracted directory:

./configure Configuration

Make compilation

Make install Installation

Uninstall: Make uninstall or delete manually

Note: It is recommended to read the documentation before extracting, to understand what the installation needs, if necessary, you need to change the compilation configuration. The source code of some packages can be uninstalled with the Make install command after compilation and installation, and if this feature is not provided, the uninstallation of the software must be manually removed. Since the software may be distributed across multiple directories in the system, it is often difficult to remove it cleanly, you should configure it before compiling, specifying that the software will be installed to the target path:./configure--prefix= directory name, so you can use "RM-RF Software directory Name" command to perform a clean and thorough uninstallation. Compared with other installation methods, it is most difficult for users to compile and install themselves, it is suitable for people who have some experience in Linux, and it is generally not recommended for beginners to use.

Differences between. tar.gz files and. rpm Files

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.