Installing and uninstalling software under Linux

Source: Internet
Author: User

First, installation method: RPM tool, yum tool, source package

1, RPM tool: Developed by Redhat Company;

yum工具:是由Python开发的;源码包:由C语言开发,C语言是Linux上最标准的程序语言。

Second, the use of RPM tools

1, mount a CD in the virtual machine to the/mnt/directory: mount/dev/cdrom/mnt/, with the DF command to see if the mount is successful, with the CD command into the/mnt/packages directory down. LS View the file details inside!

2, the composition of the document, the first section: Package name; section II: Version number; section three: Release number,

3, install RPM Package: Installation format: RPM-IVH package file; Upgrade: RPM-UVH package file; Uninstall: RPM-E Package Name
-I Installation
-e Uninstall
-V Visualization
-H Show Progress

RPM-QA: Query the system for all installed packages:
RPM-QI Package Name: Query the specified package information:
RPM-QL Package Name: Lists the installation files for a package:
RPM-QF/File Absolute path: Lists which package this file is installed in:

Iii. use of the Yum tool (Pros: Install a package that can automatically install dependent packages)
Yum list: Lists the RPM packages that can be used;
View the configuration files for Yum: ls/etc/yum.repos.d/;
View the configuration files for Yum: Cat-r/etc/yum.repos.d/centos-base.repo/
Search for a package: Yum search file name
Search for a package: Yum list |grep ' vim '

Yum grouplist: List all available groups

Yum Install + package Name: Installing a Package
Yum Remove RPM Package Name: Uninstall includes dependent packages
Yum Update RPM Package name: Upgrade all packages of the system
Yum provides "/asterisk/vim": wildcard, use * without knowing the package name.

2. Make a Yum local warehouse
1, do a good job of backup, Cp-r/etc/yum.repos.d//etc/yum.repos.d.bak
2. Delete all the files inside YUM.REOOS.D: RM-RF./*
3. Create a new file Dvd.repo:vi Dvd.rpoe

4, enter the following content in the Dvd.repo file: Wq Save exit

5. Refresh Repos Generated cache
Yum Clean All

6. Is the view successful? Take a look at the Yum list or use the Yum list |less to view all

Iv. change of domestic sources

1, the next cut: wget http://mirrors.163.com/.help/CentOS7-Base-163.repo or download with Curl-o command, and then delete/etc/yum.repos.d/ Centos-base.repo This file or rename it.

V. Installation of an extension source

Yum install-y epel-release Installing an extension source
Yum list |grep Epel view RMP Package

Six, yum download RPM package

Yum Install package name--downloadonly default path:/var/cache/yum/x86_64/updates/packages

Yum Install package name--downloadonly--downloaddir=/tmp/(directory) download and specify download directory only

To be continued .....

Installing and uninstalling software under Linux

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.