The common installation method of software under Linux __linux

Source: Internet
Author: User
Tags bz2

Linux under the software installation is mainly three ways, one is the source code installation, need to manually compile the user, the other is the RPM package (RedHat Linux Packet Manager), through the RPM command can be installed. There is also a *.bin file, the installation method is similar to the installation process under Windows, here do not introduce, this article mainly introduces the source code installation and RPM package installation.First, the source code package installation 1 , *.src.rpm source code package in the formUsage: Installing: Rpm–rebuild *.src.rpm Cd/usr/src/dist/rpms rpm–ivh *.rpm Uninstall: Rpm–e PackageName2 ,. tar.gz , *.tgz , *.bz2 installation of a form packageFirst decompression, command the following tar zxvf *.tar.gz tar xvfz *.tgz tar xvfj *.tar.bz2 after decompression into the decompression directory, and then do the following operations (general, specific look at the software File name of package:./configure compilation: Make installation: Made install Uninstall: Makes uninstall source code installation has a certain degree of difficulty, different software may have different installation, generally after decompression should first read the documentation, follow the instructions to install, It's all about the general situation.Second, RPM Package InstallationRPM installation package format is proposed by the Redhat company, greatly simplifies the installation of software under Linux, first introduced the general options.        -V: Display additional information-VV: Display debug Information--root directory: let rpm use directory as the root, so both the preinstallation program and the post installer will be installed in this directory. 1,Installation: rpm–i<options> file.rpmOPTIONS:H: Output hash mark on installation test: Install is tested only, do not really install--persent: Displays the installation progress as a percentage--excludedocs: Do not install documents in package        --replacepkgs: Force Reinstall--replacefiles: replace files that belong to other packages--force: Ignore package and document conflicts--ignorearch: Do not verify package structure --ignoreos: Do not check the operating system running the package--nodeps: Do not check dependency relationships--noscripts: Do not run preinstallation and post-Setup scripts2, delete rpm–e<option> PkgnameOption:--test: Delete Test only, do not really delete--noscripts: Do not run preinstallation and post-Setup script--nodeps: Do not check dependencies Note: Pkgname is the name of the package, not the RPM package name, but the name of the package after the installation, You can query the package name with a query command.3 , upgrade Rpm–u ( or -upgrade) <option> file.rpmOption: Basically, as with option at installation, there are several special:--oldpackage: Allow an older version4, Inquiry Rpm–q ( or --query) <option>Option:-P package_file: Query package file-F fiel: Query file belongs to which package-a: Queries all installed Packages-G Group: Queries for packages that belong to group groups--whatprovides CAPABILITY: Query provides CAPABILITY functionality for packages--whatrequires CAPABILITY: Querying all packages that require CAPABILITY functionality-I: Displaying the package's profile-L: Displays a list of files in the package- C: Display profile List-S: Display file list-scripts: Display installation, uninstall, verify script--QF: Query--dump in a user-specified way: Display the checksum information for each file--provides: Display the functionality provided by the package-R: Displays the functionality required by the package5 , verifying the packages that have been installed rpm–v (or–verify, or–y) <option>Option options are similar to other commands6, verify the file in the package rpm–k (or–checksig) <option> file.rpmOption:-V: Display version information-VV: Display debug Information--rcfile filelist: Set RPMRC file to FileList7 , other RPM Options--rebuilddb: Rebuilding the RPM database--initdb: Creating a new RPM repository--quiet: Reduce output as much as possible--help: Display Help file--version: Show the current version of RPM The above is just a summary of the common options, what's the problem? , can be viewed with the man rpm command, the official document is always the best teacher.Third, *.bin installation of the format installation fileSimply double-click or click the *.bin file to install it as prompted, and no longer apply. Summary: This article summarizes the Linux environment in the common way of software installation, and if there is a mistake, hope to be able to correct.

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.