Help you understand and use yum

Original link: http://www.cnblogs.com/binterminator/articles/1628537.html

Fedora is yum package management system can be used to install software, update software online.

yum basic commands

yum –help
man yum

Install the application

su -c ‘yum install application_name’

(Note: application_name represents the application name, the same below)

Removing applications

su -c ‘yum remove application_name’

Rpm packages from the hard disk and resolve dependencies using yum

su -c ‘yum localinstall application_name’

Search for an application

su -c ‘yum search application_name’

Finding information for an application

su -c ‘yum info application_name’

Updating your entire system

su -c ‘yum update’

Enable Software Warehouse

su -c ‘yum –enablerepo=repo_name’

(Repo_name on behalf of the repository name, the same below)

Disable depot

su -c ‘yum –disablerepo=repo_name’

Importing Fedora GPG key secret
Fedora has two basic repositories, called "fedora" and "updates". To use them and avoid errors when installing those packages are not signed, you must import their GPG key, open a terminal and enter the following command:

su -c ‘rpm –import /etc/pki/rpm-gpg/*’

Note: You may encounter some error message, such as "import failed" (import errors), but this does not affect.

Third-party software warehouse
Adobe Flash software to provide warehouse and x86 versions of Adobe Reader, installed open the terminal and type:

su -
rpm -ivh http://linuxdownload.adobe.com/linux/i386/adobe-release-i386-1.0-1.noarch.rpm
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

Configure yum to use the proxy

su -c ‘gedit /etc/yum.conf’

Add the following line in the yum configuration:

proxy=http://ip:port/

Yum install plug-ins

It allows you to search and install only security-related upgrade package

To install, enter:

su -c ‘yum install yum-security’

Application security plug-in type:

su -c ‘yum –security update’

The plug-in allows the downgrade, Yum default does not allow you to downgrade a package, but sometimes the new version but you problems.
To install, enter:

su -c ‘yum install yum-allowdowngrade’

To use it, enter:

su -c ‘yum update –allow-downgrade’

You can disable the plug-in by changing the following options in this file are enabled:

su -c ‘gedit /etc/yum/pluginconf.d/allowdowngrade.conf’

 

http://www.my-guides.net/en/content/view/164/26/2/3/ 

Reproduced in: https: //www.cnblogs.com/binterminator/articles/1628537.html

Guess you like

Origin blog.csdn.net/weixin_30193897/article/details/94805652