In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Yum (full name Yellow dog Updater, Modified) is a Shell front-end software package in Fedora and RedHat as well as CentOS
The rig. Based on RPM package management, RPM packages can be downloaded and installed automatically from designated servers, dependencies can be automatically dealt with, and all dependent software packages can be installed at one time without tedious downloading and installation.
One: commands commonly used in yum
Yum command line options
-- nogpgcheck; prohibits gpgcheck
-y; automatic answer is "yes"
-Q; silent mode
-- disablerepo=repoidglob; temporarily disables the repo specified here
-- enablerepo=repoidglob; temporarily enables the repo specified here
-- noplugins; disables all plug-ins
Yum [options] [command] [package...]
Yum warehouse
Yumrepository for short yumrepo, stores a large number of rpm packages, as well as related metadata files
Configuration file for yum:
/ etc/yum.conf provides common configuration for the warehouse
/ etc/yum.repos.d/*.repo provides coordination for warehouse direction
Definition of yum warehouse
[repositoryID] the only one in the warehouse ID
The name of name=Some name for this repositor warehouse is optional.
The access path to the baseurl=url://path/to/repository warehouse
Enabled= {0 | 1} whether to enable this warehouse
Gegcheck= {0 | 1} whether to check the validity of the source
Gpgkey=URL specifies the secret key of URL,gpg
Whether enabledgroup= {0 | 1} supports the use of group batch management packages on the warehouse
Failovermethod= {roundrobin | prioity} failover method defaults to rr, which means random selection
Cost=
The default is 1000
The 1.yum command uses yum [options] [command] [package.]
two。 Displays a list of warehouses; repolist [all | enabled | disabled]
3. Show package: list
# yum list [all | glob_exp1] [glob_exp2] [...]
Packages that display all or match criteria
# yum list {available | installed | updates} [glob_exp1]
Show packages in the warehouse that have not yet been installed / installed / upgradeable
For example:
1. Use the yum list | less command to display all packages in the yum repository. @ indicates the packages that have been installed, and @ anaconda indicates the packages installed when the system is installed.
Show all packages that begin with httpd
4. Installpackage1 [package2] [....]
Install the package
Reinstall package1 [package2] [...]
Reinstall the package
For example: install gcc, already completed
5.update [package1] [package2] [...]
Upgrade package
Remove | erase package1 [package2] [...]
Uninstall the package
6.info [...]
View the package
For example, view the gcc package
7. Provides | whatprovides feature1 [feature2] [...]
Check that the specified feature (which can be a file) is provided by that package
8.clean [packages | metadata | expire-cache | rpmdb | plugins | all]
Clear the local cache
9 .search string1 [string2] [...]
Search for package name and summary information with specified keywords
For example, search for bash-related
10. Commands related to package group management
Groupinstall group1 [group2] [...]
Groupupdate group [group2] [...]
Grouplist [hidden] [groupwildcard] [...]
Groupremove group1 [group2] [...]
Groupinfo group1 [....]
Second: create a yum warehouse
1. (1) Mount the CD to a directory, as shown in / media/cdrom
# mount-r-t iso9660 / dev/cdrom / media/cdrom
(2) create a configuration file
[ID]
Name=
Baseurl= file:///
Enabled=
Gpgcheck=
Variables available in 2.yum 's repo configuration file
The major version number of the current os release of $releasever;
$arch; platform
$basearch; basic platform
$YUM0-$YUM9
3. Create a yum repository
Createrepo [options]
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.