Well. So many people asked me how to configure yum server under Fedora 8. When ever we want to install any packages in our system with using yum command, by default it will install from Internet. If that packages in our Fedora 8 DVD. We don't need to download that packages from internet. we install that packages with our DVD only. Ok, but we need to make some changes on some files... Login as root, and give this commands from of your terminal.
That's it. You configured your yum server in your local system. So.. when ever your system asks any packages, automatically it download that packages from your cdrom. All yum commands are work like this.
Again if you want to install packages from internet with yum, we need to remove the files under /etc/yum.repos.d/
That's it, again you will download your packages from internet, so... feel Linuxxxxxxxxxxxxxx.
1. [root@localhost ~]# cd /etc/yum.repos.d/
2. [root@localhost yum.repos.d]# rm -rvf * (hay... you need to must n go to the /etc/yum.repos.d directory, other wise you will lose your data, be careful about this.)
3. Download the below link
http://www.uploading.com/files/36108BI8/repos.tar.gz.html
4. Extract the files under the /etc/yum.repos.d location like this. (Assume if you download the above file under your Desktop)
5. [root@localhost opt]# cd /root/Desktop/
6. [root@localhost Desktop]# tar -xvf repos.tar.gz -C /etc/yum.repos.d/
7. Put your Fedora Dvd in your dvd drive, and mount the dvd under the /mnt
8. [root@localhost Desktop]# mount /dev/cdrom /mnt
9. [root@localhost Desktop]# yum list
2. [root@localhost yum.repos.d]# rm -rvf * (hay... you need to must n go to the /etc/yum.repos.d directory, other wise you will lose your data, be careful about this.)
3. Download the below link
http://www.uploading.com/files/36108BI8/repos.tar.gz.html
4. Extract the files under the /etc/yum.repos.d location like this. (Assume if you download the above file under your Desktop)
5. [root@localhost opt]# cd /root/Desktop/
6. [root@localhost Desktop]# tar -xvf repos.tar.gz -C /etc/yum.repos.d/
7. Put your Fedora Dvd in your dvd drive, and mount the dvd under the /mnt
8. [root@localhost Desktop]# mount /dev/cdrom /mnt
9. [root@localhost Desktop]# yum list
That's it. You configured your yum server in your local system. So.. when ever your system asks any packages, automatically it download that packages from your cdrom. All yum commands are work like this.
Again if you want to install packages from internet with yum, we need to remove the files under /etc/yum.repos.d/
1. [root@localhost ~]# cd /etc/yum.repos.d/
2. [root@localhost yum.repos.d]# rm -rvf * (hay... you need to must n go to the /etc/yum.repos.d directory, other wise you will lose your data, be careful about this.)
3. [root@localhost ~]# mount /dev/cdrom /mnt (mount the cdrom under /mnt)
4. [root@localhost ~]# cd /mnt/Packages/
5. [root@localhost Packages]# rpm -ivh fedora-release-8-3.noarch.rpm --force (install the package forcely)
2. [root@localhost yum.repos.d]# rm -rvf * (hay... you need to must n go to the /etc/yum.repos.d directory, other wise you will lose your data, be careful about this.)
3. [root@localhost ~]# mount /dev/cdrom /mnt (mount the cdrom under /mnt)
4. [root@localhost ~]# cd /mnt/Packages/
5. [root@localhost Packages]# rpm -ivh fedora-release-8-3.noarch.rpm --force (install the package forcely)
That's it, again you will download your packages from internet, so... feel Linuxxxxxxxxxxxxxx.
1 comment:
this is realy useful for us, sir.
Post a Comment