In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use the yum command in Fedora. It is very detailed and has a certain reference value. Friends who are interested must finish it!
What is Fedora yum?
Fedora yum = Yellow dog Updater, the main function of Modified is to add / delete / update RPM packages more easily. It can automatically solve the problem of packet dependence. It is easy to manage a large number of system update problems.
Note: the simplest reason for using Fedora yum instead of apt is that Fedora comes with
Characteristics of Fedora yum
Multiple resource libraries (Repository) can be configured at the same time, concise configuration files (/ etc/Fedora yum.conf), automatically solve the dependency problems encountered when adding or deleting rpm packages, easy to use, and maintain consistency with the RPM database.
Fedora yum installation
Fedora comes with
# rpm-ivh Fedora yum-2.0.4-2.noarch.rpm
Fedora yum configuration
Note: modify and add the repository in the configuration file to speed up downloads and have more updatable rpm packages
Replace all the contents of / etc/yum.conf with
[main]
Cachedir=/var/cache/yum
Debuglevel=2
Logfile=/var/log/yum.log
Pkgpolicy=newest
Distroverpkg=fedora-release
Tolerant=1
Exactarch=1
[fedora-us-1]
Name=Fedora Core 1-Fedora US mirror
Baseurl= ftp://mirrors.kernel.org/fedora.us/fedora/fedora/1/i386/yum/os
[fedora-us-1-updates]
Name=Fedora Core 1 updates-Fedora US mirror
Baseurl= ftp://mirrors.kernel.org/fedora.us/fedora/fedora/1/i386/yum/updates
[fedora-us-1-stable]
Name=Fedora Linux (stable) for Fedora Core 1-Fedora US mirror
Baseurl= ftp://mirrors.kernel.org/fedora.us/fedora/fedora/1/i386/yum/stable
[freshrpms]
Name=Fedora Linux $releasever-$basearch-freshrpms
Baseurl= http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms
Fedora yum application
Note: when you update the Fedora yum or Fedora yum repository for * times, Fedora yum will automatically download all the required headers and place them in the / var/cache/Fedora yum directory, which may take a long time.
Check for updatable rpm packages
# Fedora yum check-update
Install the rpm package so that xmms can play mp3
# Fedora yum install xmms-mp3
Install mplayer and automatically install the relevant software
# Fedora yum install mplayer
Delete the licq package and delete the package that is dependent on the package
# Fedora yum remove licq
Note: you will be prompted to delete licq-gnome,licq-qt,licq-text at the same time, which is very convenient.
System updates (update all upgradeable rpm packages, including kernel)
# Fedora yum-y update
Perform system updates regularly every day
# chkconfig Fedora yum on
# service Fedora yum start
The above is all the contents of the article "how to use yum commands in Fedora". 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.