tag: Google software package
I have been using centos in my previous work. I suddenly installed the RedHat 5.4 system today. I want to use the vim tool. However, we all know that this tool is not installed, you will surely think of using yum for installation. However, the yum source provided by RedHat can be used only at the cost. Therefore, because we are a small-scale peasant class, we can't google it. It turns out that I have not met many predecessors, so I just clicked on a few links. Looking at other people's labor results makes me a little dizzy. I tried too many methods and finally got it done. It's not easy. Because RedHat is a built-in Yum source that charges fees, we naturally think of using its Community version centos Yum source. First, we need to uninstall the RPM package of Yum that comes with RedHat. Step 1: Check the yum package rpm-Qa | grep Yum installed on the system to uninstall the installed Yum package rpm-e-nodeps xxxxxx. RPM Step 2: first determine the system architecture. For i386, you need to find the corresponding software package from the http://mirrors.163.com/centos/5/ OS /i386/CentOS/. For x86_64, You need to upgrade to the upgrade) the software package in the package storage directory rpm-IVH m2crypto-0.16-8.el5.i386.rpm python-elementtree-1.2.6-5.i386.rpm python-iniparse-0.2.3-4.el5.noarch.rpm python-sqlite-1.1.7-1.2.1.i386.rpm python-urlgrabber-3.1.0-6.el5.noarch.rpm yum-3.2.22-39.el5.centos.noarch.rpm yum-fastestmirror-1.1.16 21. el5.centos. noarch. rpm yum-metadata-parser-1.1.2 3. el5.centos. i386.rpm
Rpm-import http://mirrors.163.com/centos/rpm-gpg-key-centos-5use the yumsource CD/etc/yum. Repos. d/wget secret. Modify the following content # CentOS-Base.repo # The mirror system uses the connecting IP address of the client and the # Update Status of each mirror to pick mirrors that are updated to and # geographically close to the client. you shoshould use this for centos updates # Unless you are manually picking other mirrors. # if the specified list = does not work for you, as a fall back you can try the # remarked out baseurl = line inste Ad. # [base] Name = centos-$ releasever-base-163.com# release list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = osbaseurl = Response # released updates [updates] Name = centos-$ releasever-Updates-163.com# releasever list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = updatesbaseurl = packages # packages used/produced in the build but not released [Addons] Name = centos-$ releasever-Addons-163.com# release list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = addonsbaseurl = repository # additional packages that may be useful [extras] Name = centos-$ releasever-extras-163.com# release list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = libraries # additional packages that extend functionality of existing packages [centosplus] Name = centos-$ releasever-plus-163.com# release list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = centosplusbaseurl = signature # contrib-packages by centos users [contrib] Name = centos-$ releasever-contrib-163.com# release list = http://mirrorlist.centos.org /? Release = $ releasever & arch = $ basearch & repo = contribbaseurl = the red part above is modified to clear and regenerate the yum cache Yum clean metadatayum makecache Step 3: in this case, yum works normally. We can use the command to view the yum list all
use a free Yum source on Redhat 5.4