Software installation of Linux learning article

Source: Internet
Author: User

RPM Installation: (yum is installed in RPM package)

RPM-IVH Package Full Name #安装RPM包

-I: (install) installation

-V: Show more information

-H: Show progress

--nodeps: No tolerance detection

RPM-UVH Package Full Name #升级更新rpm包

-U: (upgrade) upgrade

RPM-E Package Name #卸载rpm

-E: Uninstall

--nodeps: No dependency detection


RPM Package Query:

RPM-Q Package Name #查询包是否安装

Rpm-qa #查询所有已经安装的rpm包

Rpm-qa | grep httpd #在系统已安装包中查询rpm包名中有httpd字符串的包

RPM-QI Package Name #查询已安装软件包详细信息

-I: Querying software information (information)

-P: Query does not install package information

RPM-QIP Package Full Name #查询未安装包信息

RPM-QL Package Name #查询软件包中文件安装位置

RPM-QLP Package Full Name #查询未安装包文件安装位置

RPM-QF System file name #查询系统文件属于哪个软件包

RPM-QR Package Name #查询软件包的依赖性

RPM-QRP Package Full Name #查询未安装软件包依赖性


RPM Package Check:

Rpm-v the installed package name #校验指定rpm包中的文件


Package file deleted by mistake Workaround:

①rpm-qf/bin/ls #查询ls命令属于哪个软件包

②rpm2cpio/mnt/cdrom/packages/coreutils-8.4-19.el6.i686.rpm | Cpio-idv./bin/ls

#提取rpm包中ls命令到当前目录的/bin/ls (. Indicates the current directory)

③cp/root/bin/ls/bin/#把ls命令复制到/bin/directory, complete the fix


Yum Installation:

Make a Yum source of CDs:

① Mount Disc (Mkdir/mnt/cdrom mount/dev/cdrom/mnt/cdrom)

② the network Yum Source is invalidated (cd/etc/yum.repos.d mv Centos-base.repo Centos-base.repo.bak)

③ making the disc Yum source effective (vim Centos-media.repo)

[C6-media]

name=centos-$releasever-media

baseurl=file:///mnt/cdrom/# 1) address changed to your own CD mount address

# file:///media/cdrom/

# file:///media/cdrecorder/# 2) Note the two nonexistent addresses

Gpgcheck=1

Enabled=1 # 3) Change enabled=0 to enabled=1 to make this yum source configuration file effective

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6


Yum command:

Yum List #查询所有可用软件包列表

Yum Search keyword #搜索服务器上所有和关键字相关的包

Yum-y Install package name #安装 (-y auto Answer Yes)

Yum-y Update package name #升级更新

Yum-y Remove Package name #卸载

Yum Grouplist #列出所有可用的软件组列表

Yum groupinstall software group name #安装指定软件组, group name can be queried by grouplist

Yum groupremove software group name #卸载指定软件组


SOURCE Package Installation:

Source package installation location is generally:/usr/local/software name/(RPM package is the default location, everywhere)

Source package does not have uninstall command

① Download Source Package

② extract the downloaded source package

③ into the Unzip directory

④./configure (defines required functions, detects system environments, writes defined functions and information about the detection system environment to makefile files) Example:./configure--prefix=/usr/local/apache2 (--prefix Specify installation location)

⑤make #编译 (Make clean #清除此步骤)

⑥make Install #编译安装

You do not need to uninstall the command, delete the installation directory directly, there will be no residual junk files.

The install file under the root directory of the source package is the installation documentation.


Script installation: (actually the source and RPM packages are installed)


This article is from the "we_need_to_try" blog, make sure to keep this source http://liuxiao255.blog.51cto.com/10551403/1832190

Software installation of Linux learning 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.