In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use the yum command in Linux. It is very detailed and has a certain reference value. Friends who are interested must finish it!
Linux common command yum command is a rpm-based software package manager in Fedora, RedHat and SUSE. It enables system managers to interactively and automatically update and manage RPM software packages, automatically download and install RPM packages from designated servers, automatically deal with dependency relations, and install all dependent software packages at one time without tedious downloading and installation.
Yum RPM-based package manager
Add that yum provides commands to find, install, and delete one, a group, or even all of the software packages, and the commands are concise and easy to remember.
Syntax yum (options) (parameters) option-h: display help;-y: answer "yes" to all questions;-c: specify configuration file;-Q: quiet mode;-v: detailed mode;-d: set debug level (0-10);-e: set error level (0-10);-R: set the maximum waiting time for yum to process a command -C: run entirely from the cache without downloading or updating any header files. Parameter install: install the rpm package; update: update the rpm package; check-update: check if an updated rpm package is available; remove: delete the specified rpm package; list: display the information of the package; search: check the information of the package; info: display the description and summary of the specified rpm package; clean: clean up the expired cache of yum; shell: the shell prompt to enter yum; resolvedep: show the dependency of the rpm package Localinstall: install the local rpm package; localupdate: show the local rpm package for update; deplist: show all the dependencies of the rpm package. Commands commonly used in some examples include:
Automatically search for the fastest image plug-in: yum install yum-fastestmirror
Install the yum graphics window plug-in: yum install yumex
View a list of possible bulk installations: yum grouplist
Installation
Yum install # install all yum install package1 # install the specified installation package package1 yum groupinsall group1 # installer group group1 updates and upgrades
Yum update # Update all yum update package1 # Update specified packages package1 yum check-update # check updatable programs yum upgrade package1 # upgrade specified packages package1 yum groupupdate group1 # upgrade program group group1 find and display
# check whether MySQL has installed yum list installed | grep mysql yum list installed mysql* yum info package1 # display installation package information package1 yum list # display all packages installed and can be installed yum list package1 # display specified package installation package1 yum groupinfo group1 # display program group group1 information yum search string look for installation package deletion program according to keyword string
Yum remove | erase package1 # Delete package package1 yum groupremove group1 # Delete program group group1 yum deplist package1 # View program package1 dependencies clear cache
Yum clean packages # clear the package in the cache directory yum clean headers # clear the headers yum clean oldheaders in the cache directory # clear more instances of old headers in the cache directory
# yum / etc/yum.repos.d/ yum source configuration file vi / etc/yum.repos.d/nginx.repo # for example: nginx yum source [nginx] name=nginx repo baseurl= http://nginx.org/packages/centos/6/$basearch/ gpgcheck=0 enabled=1 # yum mirror mv / etc/yum.repos.d/CentOS-Base.repo / etc/yum.repos.d/CentOS-Base.repo.bak wget https://mirror.tuna.tsinghua.edu.cn/help/centos / yum makecache # add Chinese language support LANG=C # original language LANG=zh_CN.utf8 # switch to Chinese yum groupinstall "Chinese Support" # add Chinese language support above is all the content of the article "how to use yum commands in Linux" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.