Vim text editor and Yum Setup

Source: Internet
Author: User
Tags yum repolist

RPM-IVH Software Name-version information-.rpm (install software)
RPM-Q software name (see if the software is installed)
RPM-E Software name (uninstall the switch)
Because RPM has dependencies and Yum just solves this problem

Create/Modify text files with vim
Vim Text Editor
Command mode (i) Insert mode (CTRL +:) last line mode
In the last line mode, enter: Wq Save and exit
Input: q! Force exit
VIM Command mode (digital) +yy Copy the number of these lines, p paste
In vim command mode, DD deletes the cursor in the row
Vim Command mode capital C Delete the file following the line where the cursor is located
Vim Command mode O another line
VIM Command mode u undo the current operation


Yum's Build text path (/ETC/YUM.REPOS.D/*.REPO)
Configuration:
Vim/etc/yum.repos.d/*.repo
[] Warehouse Name
Name= Warehouse Description Information
baseurl= Specifies 、、、 as the service side
enable= 0 off, 1 open service
gpgcheck= 0 does not open signature authentication, 1 open signature authentication

Yum Clean all clears the cache
Yum repolist Column Warehouse
Yum-y Install software name (Installation software)
Yum-y Remove software name (uninstall software)


Vim text editor and Yum Setup

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.