|
||||||||
|
||||||||
|
|
Công Cụ | Xếp Bài |
02-10-2009, 11:04 PM | #1 |
Guest
Trả Lời: n/a
|
Add Repository và Update System
Add Repository và Update System 1. Add Dag RPM Repository for yum because that has many useful packages. root@ns ~]#wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt --00:03:28-- http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt Resolving dag.wieers.com... 217.22.63.77 Connecting to dag.wieers.com|217.22.63.77|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1672 (1.6K) [text/plain] Saving to: `RPM-GPG-KEY.dag.txt' 100%[=======================================>] 1,672 --.-K/s in 0s 00:03:28 (114 MB/s) - `RPM-GPG-KEY.dag.txt' saved [1672/1672] [root@ns ~]# [root@ns ~]#rpm --import RPM-GPG-KEY.dag.txt [root@ns ~]#rm -f RPM-GPG-KEY.dag.txt [root@ns ~]#vi /etc/yum.repos.d/dag.repo // create the file with following content [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el5/en/i386/dag/ gpgcheck=1 enabled=0 // When you use dag repository, Input yum command like below. [root@ns ~]#yum --enablerepo=dag install [package name] 2. Update your system with 'yum' command. However, before doing it, Install 'yum-fastestmirror' that looks for fast server and download packages from there automatically when yum command is used. root@ns ~]#yum -y install yum-fastestmirror Loading "installonlyn" plugin Setting up Install Process Setting up repositories base 100% |=========================| 1.1 kB 00:00 updates 100% |=========================|951 B 00:00 addons 100% |=========================|951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 Reading repository metadata in from local files primary.xml.gz 100% |=========================| 798 kB 01:27 base: ######################################### 2334/2334 Added 2334 new packages, deleted 0 old in 9.34 seconds primary.xml.gz 100% |=========================| 489 kB 00:01 updates: ######################################### 222/222 Added 222 new packages, deleted 0 old in 1.00 seconds primary.xml.gz 100% |=========================| 157 B 00:01 Added 0 new packages, deleted 0 old in 0.00 seconds primary.xml.gz 100% |=========================| 4.2 kB 00:00 extras: ######################################### 16/16 Added 16 new packages, deleted 0 old in 0.04 seconds Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for yum-fastestmirror to pack into transaction set. yum-fastestmirror-1.0.3-1 100% |=====================| 4.9 kB 00:00 ---> Package yum-fastestmirror.noarch 0:1.0.3-1.el5.centos set to be updated --> Running transaction check Dependencies Resolved ================================================== ======= Package Arch Version Repository Size ================================================== ======= Installing: yum-fastestmirror noarch 1.0.3-1.el5.centos extras 11 k Transaction Summary ================================================== ====== Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 11 k Downloading Packages: (1/1): yum-fastestmirror- 100% |=======================| 11 kB 00:00 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: yum-fastestmirror ######################### [1/1] Installed: yum-fastestmirror.noarch 0:1.0.3-1.el5.centos Complete! [root@ns ~]#yum -y update |
|
|