Linux Learning Notes-Software Installation (iv)

Source: Internet
Author: User

++++++++++++++++++++++++++++++linux Software Installation +++++++++++++++++++++++++++++++Note: All installation packages in the window system cannot be installed directly in the Linux system 1. Package Classification: SOURCE Package (script installation package: install.sh)--slow installation, you can see the source codeBinary Package (RPM package, system default package)-The source code package after compiling the machine code, installation fast, do not see the source code  2. RPM Package Management:RPM Package Naming rules-Example: httpd-2.2.15-15.e16.centos.1.i686.rpmhttpd Package Name2.2.15 software version15 number of software releasesE16.centos the right Linux platformi686 the right hardware platformrpm RPM Package extensionRPM Package Dependencies:Tree-dependent: a->b->cring-dependent: A->b->c->aModule Dependency: module dependent query URL--www.rpmfind.netRPM Package Name and package full name:Package Full Name: When the package is not installed, the package full name is used, and the path is noted. Package Name: Use package name when operating a package that is already installed--actually searching the database in/var/lib/rpm  RPM Package Installation: command: RPM-IVH package full Nameoption:-I (Install: installation)-V (verbose: Show details)-H (hash: Show progress)RPM Package Upgradecommand: RPM-UVH package full Nameoption:-U (upgrade: Upgrade)rpm Package Uninstall:command: RPM-E package nameoption:-E (Erase: Uninstall)RPM Package Query:command: RPM-Q package nameoption:-Q (query)-A (query all RPM installation packages)-I (Query software details)- P (query does not install package information)-L (Package list-where the files in the query package are installed)-F (Query system file name is in which package)-R (query package dependencies) RPM Package Check:command: Rpm-v installed package nameoption:-V (verify specified RPM package)Note: The s--file size changes whether the 5--file content changes t--file modification Time c--indicates the file type     RPM Package file extraction:command: Rpm2cpio package full name | \ #将包转换成cpip格式cpio-idv. File absolute Path (-I: Extract,-D auto New directory,-V: Show extraction process) #冲cpio格式文件中提取需要的文件                RPM Package installed online : (yum command, not necessarily networking, also can use local Yum source)Yum Source:network Yum Source configuration file--/etc/yum.repos.d/centos-base.repo[Base] Container nameName Container Descriptionmirrorlist Mirror AddressBaseURL Yum Source server addresswhether the enabled container is activeGpgcheck whether to perform digital certificate verificationGpgkey digital Certificate public key save addressCommon Yum Commands:query: The list of available packages for Yum list--queriesyum search--all keyword-related packages on the search serverInstallation: Yum-y Install package nameoption:-y auto Answer Yes install installationUpgrade: Yum-y Update package nameoption:-y auto Answer Yes update upgradeUninstall: Yum-y Remove package nameoption:-y auto Answer yes remove uninstallYum Software Group management:list all available software groups: Yum grouplistInstall the specified software group: Yum Groupinstalluninstalling the specified software group: Yum Groupremove setup of the disc yum source : 1) mounting system CD2) Let the network yum source fail: Rename the redundant yum source to expire3) Modify disc yum source file: Modify path enable = 1  3. Installation and management of the source package:
the difference between the source package and the RPM package:
Pre-installation differences: The difference in probabilitythe difference after installation: different installation locations RPM Package Installation location--installed in the default location                        Source Package Installation Location--installed in the specified locationGeneral in:/usr/local/software name               the impact of different installation locations:RPM Package Installed services can be managed using the System Service Management Command (service), but the source package cannot be managed with similar system commands, so the source package can only be managed with a source package
     
Pre-Installation preparation: Installing the C language compilerDownload the source package for installation     Installation Considerations:Source code Save location:/usr/local/srcSoftware Installation location:/usr/localHow to determine the installation process error: The installation process stopped, error\warning\no and other prompts     Installation:--Download the source package--Decompression source package--access to the source package directory--./configure software Configuration and inspection: Define required functions, detect environment information, write defined functions and test environment information to makefile files for subsequent edits--make Compilation (Make clean empty compile file information)--make Install compilation--Executes the binaries in the bin of the installation directory Uninstall: Remove the installation directory directly--rm-rf/usr/local/softname 4. Script installation package : (mainly some hardware drivers use the script to install the package)--The script installation package is not a standalone package type--The installation process has been written to the automatic installation of the script, as long as the execution of scripts, define simple parameters, you can complete the installation--very similar to how software is installed under Windows(Webmin Linux System management tools)     ++++++++++++++++++++++++++++++linux Software Installation +++++++++++++++++++++++++++++++

Linux Learning Notes-Software Installation (iv)

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.