Common Software Installation Methods in Linux

Source: Internet
Author: User
There are three main methods for installing software in Linux: source code installation, manual compilation, and RPM package (RedHat Linux packet manager ), the RPM command can be used for installation. Another method is the *. binfile, which is similar to the installation process in windows. Here we will not introduce it. This article mainly introduces the installation of source code and RPM packages. I. Install the source code package 1. * Source code package in the form of SRC. rpmUsage: Install: rpm-rebuild *. SRC. rpmcd/usr/src/Dist/RPMS rpm-IVH *. RPM uninstall: rpm-e packagename 22.16.tar.gz, *. tgz, *. bz2 software package installationFirst decompress the package and run the following command: Tar zxvf * .tar.gz tar xvfz *. after tgz tar xvfj * .tar.bz2 is decompressed, enter the decompressed directory and configure the following operations (generally, refer to the file name of the software package :. /configure Compilation: Make installation: make install uninstall: Make uninstall source code installation is difficult. Different software may be installed differently. Generally, read the instructions first after decompression, follow the instructions to install the SDK. Ii. RPM package installationThe RPM installation package format was proposed by RedHat, which greatly simplifies the installation of software in Linux. First, we will introduce general options. -V: displays additional information-VV: displays debugging information-root directory: enables RPM to use directory as the root directory, so that both the pre-installation program and the post-installation program will be installed in this directory. 1, Installation: rpm-I <Options> file. rpmOptions: H: the hash mark test is output during installation: only the installation test is performed. If the installation is not performed, -- persent: the installation progress is displayed as a percentage. -- excludedocs: The document -- replacepkgs: force reinstall -- replacefiles: replace files of other software packages -- force: ignore software packages and document conflicts -- ignorearch: Do not validate the Software Package Structure -- ignoreos: do not check the operating system of the software package running -- nodeps: do not check the dependency -- noscripts: Do not run the pre-Installation and post-installation script programs 2. Delete rpm-E <option> pkgnameOption: -- test: only delete test, not delete actually -- noscripts: Do not run pre-Installation and post-installation script program -- nodeps: do not check dependencies Note: pkgname is the package name, it is not the RPM package name, but the package name after installation. You can use the query command to query the package name. 3. Upgrade rpm-U (or-Upgrade) <option> file. rpmOption: similar to the option during installation, there are several special features: -- oldpackage: allows an old version 4. query rpm-Q (or -- Query) <option>Option:-P package_file: query the package file-F Fiel: query which package file belongs to-A: Query all installed packages-G group: query the group software package -- whatprovides capability: query the software package that provides capability -- whatrequires capability: Query all software packages that require capability-I: display the summary of the software package-l: display the file list in the software package-C: display the configuration file list-S: display the file list-scripts: display the installation, uninstallation, validation script-QF: query in the way specified by the user -- dump: display the verification information for each file-provides: display the functions provided by the software package-R: display the functions required by the Software Package 5. Verify the installed software package rpm-V (or-verify, or-y) <option>The option is similar to that of other commands. 6. Verify the file rpm-K (or-checksig) <option> file. rpm in the software package.Option:-V: display version information-VV: Display debugging information-rcfile filelist: Set the rpmrc file to filelist 7. Other RPM options-- Rebuilddb: re-create the RPM database -- initdb: Create a New RPM database -- Quiet: reduce the output as much as possible -- help: display the Help file -- version: show the current version of RPM. The above is just a summary of common options. For more information, see the man RPM command. The official file will always be the best teacher. Iii. Installation of *. Bin installation filesYou only need to double-click the *. binfile to install it as prompted. From: http://blog.csdn.net/yclz/article/details/1924783
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.