We know that Linux is open source, its own powerful commands are open source, that is, we can obtain the source code of these commands and study it. So how exactly did you get the source code for the system command?The source code of the command is
There are two methods to configure yum. One is to directly configure Yum under the/etc directory. CONF file, the other is in/etc/yum. repos. d directory. repo file.
1. Yum configuration file
$ CAT/etc/yum. conf
[Main]Cachedir
The default yum update source of CentOS is obtained from the image list. The system automatically detects a fast update source based on your speed and region and uses this update source. If CentOS is in China but foreign sources are used, or the
Installation medium: rhel-server-5.5-x86_64.iso 3.44GVM version: VMware Workstation 8.0 accounts: xubobo/admin root/admin virtual machine version: Red Hat Enterprise Linux 5_5 64-bit pure net version .zip 912M Description: Completely pure version,
Full configuration of Linux yum SourceI. Introduction yum is mainly used to conveniently Add/delete/update RPM packages. It automatically solves the dependency problem of packages and facilitates management of a large number of system updates, the
YUM Detailed installation Configuration document
Introduction of Yum
1, Yum is what.
Yum = Yellow Dog Updater, Modified was originally developed by Yellow Dog, the developer of this release, Terra Soft, written in Python,
It was also called yup
1. Fedora 14 Yum source Shanghai Jiaotong University
First, enter the terminal to open and enter the Su, password, and administrator permission;
Input VI/etc/yum. Repos. d/fedora-sjtu.repo, press ENTER
Copy the following content to the opened fedora-
Document directory
RPM package update
Installation and deletion of RPM packages
Parameters related to Yum temporary storage (/var/Cache/Yum /)
Package list
RPM package information display (the info parameter is the same as the list)
Search
After Fedora9 is installed, you should first set sudo. The role of sudo is to allow non-root users to directly add sudo to the command before the command when using commands without permissions, you can enter the password of your current user to
How to Use centos6 Yum source classification for 32-bit rhel6: Linux basics 325 people read comments (0) collect reports
How to Use centos6 Yum source for 32-bit rhel6)
Http://blog.chinaunix.net/uid-24501667-id-3059325.html
(Note: When installing
Many servers in the Organization are RedHatAS4 and AS5 machines. You often need to install and compile software packages. upgrading to the CentOS system is much more convenient! I checked the relevant materials online, but they were not satisfactory.
/Etc/yum. repos. d/Add: Shanghai Jiao Tong Fedora14 update source, new sjtu. repo [Fedora-ftp.sjtu.edu.cn] name = Fedora14-i386baseurl = http://ftp.sjtu.edu.cn/fedora/linux/releases/14/Fedora/i386/ OS /enabled=1gpgcheck=0gpgkey=fil
Add the following
1. Copy all centos Yum files, but actually only use base files.
[Root @ server yum. Repos. d] # lsCentOS-Base.repo CentOS-Debuginfo.repo. B CentOS-Media.repo. B server. Repo. B
2. Check the file and learn the following points:
Enabled = 0 do not
Fedora updates Yum instead of APT-get, and the software type is RPM (RedHat Package Manager)
Install RPM fusion software Repository
Command:
Su-// switch to the root user and enter the passwordRpm-IVH
Http://download1.rpmfusion.org/free/fedora/
Original link: http://www.live-in.org/archives/1410.htmlUsually use the Yum method to install the update software, you can build a Yum source, synchronize the official update source, so that if there is a local machine to upgrade, you can directly
GitLab, an open source application developed using Ruby on Rails, is similar to GitHub, able to browse the source code, manage flaws and annotations, and is ideal for use within a team.The official only provides the installation instructions under
Since the Yum online update for Rhel is chargeable, it cannot be used if not registered, that is, the software cannot be installed online. In this case, if the machine we are using is a rhel system, it will be cumbersome to mount the local CD-ROM
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.