Linux Software Management

Source: Internet
Author: User
Tags gpg yum repolist

RPM Package Management
Rpm-i Installation
RPM-E Uninstall
Rpm-u Upgrade
-V Display Trust information
-H Show progress bar
RPM-QA list all installed RPM software
RPM-QF query destination file belongs to that RPM package
Rpm-qi query to install the RPM software information
RPM-QL query Specifies the files that are included in the installed RPM software
RPM-QIP Query rpm file information
RPM-QIP to query the files contained in the RPM file
RPM-REBUILDDB rebuilding RPM database, database corruption
RPM-INITDB database initialization, loss of database files

Yum Package Management

Yum Global profile configuration file/etc/yum.conf
Yum Global parameter description
Cachedir Yum Source
Keepcache determine if the Yum file is cached locally or deleted 0 is not retained 1 is reserved
DebugLevel Debug Level
LogFile Yum log file
Exactarch whether to check platform compatibility, 1 is to check
Obsoletes whether to check for obsolete packages
Gpgchech checks if the source of the package is legitimate and 1 is legal. Requires a software developer's public key
Plugins whether to enable some plugins

Yum Source configuration file/etc/yum.repos.d/

Repodata: Documenting dependencies between software
If the local mirror has a repodata folder under the server directory, then this image can be configured as a local Yum source.
To configure the local Yum Source:

[Email protected] ~]# Vim/etc/yum.repos.d/rhel-source.repo [Rhel-local-source] name=yum-local baseurl=file:///mnt/ Cdrom/server enabled=1 gpgcheck=1 Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-redhat-release

The Yum source address of NetEase
http://mirrors.163.com/

Configure the Yum source for NetEase

[Base] name=centos-$releasever-base-163.com baseurl=http://mirrors.163.com/centos/6/os/x86_64/gpgcheck=1 gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 [Updates] name=centos-$releasever-updates-163.com baseurl= Http://mirrors.163.com/centos/6/updates/x86_64/gpgcheck=1 gpgkey=http://mirror.centos.org/centos/ Rpm-gpg-keiy-centos-6

Note: If you have more than one Yum library, then the software on the Yum Library is new, and the computer is the software that chooses to install that library.


yum repolist: View the currently available yum source
yum repolist: View all yum sources (available and disabled)
yum Install software name: Installation software
yum install-y software name: Direct install software do not confirm
yum Update Software name: Updated software
yum Erase software Name: Remove software
yum Reinstall Software Name: Uninstall the existing reinstall
localinstall: Point to the local RPM package and, if there is a dependency, automatically downloads the dependent package from the repository
yum localinstall local software path
yum Install--nogpgcheck Software Name: Install software does not check digital signature
yum grouplist: View software group
yum Groupinstall Software group name: Install software group
yum groupinfo software group name: The query software group contains those packages
yum Groupupdate software group name: Upgrade software in software group

This article from "Plum blossom fragrance from bitter cold" blog, please be sure to keep this source http://wangjunkang.blog.51cto.com/8809812/1563069

Linux Software Management

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.