PDA

View Full Version : Can I Install FC 8 from Live CD and add packages from DVD ISO file later?



cmoraes
12th November 2007, 12:25 PM
Hi folks,

As you know, FC 8 is available for download only as a Live CD iso or a DVD iso. I currently have both iso images on my HDD.

I don't have a DVD burner to burn the install DVD, so, I'm stuck with having to burn the Live CD and installing from it.

I've heard that the software on the Live CD is limited and I'd have to download packages I need from the repositories. I do not want to do that (bandwidth issues), so am trying to find an option to install packages from the DVD iso file directly (without burning the iso to DVD).

After I install FC 8 from the Live CD, is it possible to somehow mount the DVD iso file under FC 8 and install packages from it directly?

Appreciate any pointers in this direction.

Thanks.

ausadl
12th November 2007, 12:50 PM
su
mkdir /mnt/iso
mount -o loop whatever.iso /mnt/iso/

cmoraes
12th November 2007, 01:00 PM
Thanks ausadl. I'll try that out.

brr872002
12th November 2007, 01:35 PM
Hi folks,

As you know, FC 8 is available for download only as a Live CD iso or a DVD iso. I currently have both iso images on my HDD.

I don't have a DVD burner to burn the install DVD, so, I'm stuck with having to burn the Live CD and installing from it.

I've heard that the software on the Live CD is limited and I'd have to download packages I need from the repositories. I do not want to do that (bandwidth issues), so am trying to find an option to install packages from the DVD iso file directly (without burning the iso to DVD).

After I install FC 8 from the Live CD, is it possible to somehow mount the DVD iso file under FC 8 and install packages from it directly?

Appreciate any pointers in this direction.

Thanks.
You can upgrade via yum by creating local repos. of your media or mounting DVD.iso
mkdir /mnt/iso
mount /mnt/D:/hcl/F-7-i386-DVD.iso /mnt/iso/ -t iso9660 -o ro,loop=/dev/loop0
Note you have to change location of DVD.iso and mount point as per your system.

now create myrepos

gedit /etc/yum.repos.d/myrepo.repo

This command will open new file myrepo.repo.

[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=/mnt/iso
enabled=1
gpgcheck=0
_____________________--
Next edit your
gedit /etc/yum.repos.d/fedora.repo
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY


Now
Run
# yum upgrade
For non-free multimedia application
you can enable livna repos
[livna]
name=Livna for Fedora Core $releasever - $basearch - Base
baseurl=
http://rpm.livna.org/fedora/$releasever/$basearch/
http://livna.cat.pdx.edu/fedora/$releasever/$basearch/
http://wftp.tu-chemnitz.de/pub/linux/livna/fedora/$releasever/$basearch/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/fedora/$releasever/$basearch/
http://mirror.atrpms.net/livna/fedora/$releasever/$basearch/
ftp://mirrors.tummy.com/pub/rpm.livna.org/fedora/$releasever/$basearch/
failovermethod=priority
#mirrorlist=http://rpm.livna.org/mirrorlist-7
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna

[livna-debuginfo]
name=Livna for Fedora Core $releasever - $basearch - Debug
baseurl=
http://rpm.livna.org/fedora/$releasever/$basearch/debug/
http://livna.cat.pdx.edu/fedora/$releasever/$basearch/debug/
http://wftp.tu-chemnitz.de/pub/linux/livna/fedora/$releasever/$basearch/debug/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/fedora/$releasever/$basearch/debug/
http://mirror.atrpms.net/livna/fedora/$releasever/$basearch/debug/
ftp://mirrors.tummy.com/pub/rpm.livna.org/fedora/$releasever/$basearch/debug/
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
gpgcheck=1

[livna-source]
name=Livna for Fedora Core $releasever - $basearch - Source
baseurl=
http://rpm.livna.org/fedora/$releasever/SRPMS/
http://livna.cat.pdx.edu/fedora/$releasever/SRPMS/
http://wftp.tu-chemnitz.de/pub/linux/livna/fedora/$releasever/SRPMS/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/fedora/$releasever/SRPMS/
http://mirror.atrpms.net/livna/fedora/$releasever/SRPMS/
ftp://mirrors.tummy.com/pub/rpm.livna.org/fedora/$releasever/SRPMS/
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
gpgcheck=1


You will get a list of offending packages
You have to mannually erase these pakeges name wise

rpm -e XXX
yum remove XXX
Reply With Quote
Welcome comroes this can be done by mounting DVD.iso or just mount iso file and copy Packages Dir. /tmp/Packages
#yum install createrepo

#createrepo /tmp/Packages


gedit /etc/yum.repos.d/myrepo.repo

This command will open new file myrepo.repo.

[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=/tmp/Packages
enabled=1
gpgcheck=0
#rpm -ivh http://rpm.livna.org/livna-release-8.rpm

yum install yumex

Now you can use yumex GUI for install or upgrades

For more details http://news.softpedia.com/news/Creating-a-Local-Update-Repository-for-FC6-43559.shtml




For auto download of updates for multiple machines you can use cron jobs
/etc/cron.daily/repository
!/bin/bash
#rsync -avrt rsync://rsync.gtlib.gatech.edu/fedora-enchilada/linux/releases/7/Everything/i386/os/Fedora --exclude=debug/ --exclude=repodata/ --exclude=*debuginfo* --exclude=*i18* --exclude=*langpack* /var/www/html/yum/updates/7
rsync -avrt rsync://ftp.ciril.fr/pub/linux/fedora/linux/updates/8/i386 --exclude=debug/ --exclude=repodata/ --exclude=*debuginfo* --exclude=*i18* --exclude=*langpack* /var/www/html/yum/updates/8
#rsync -avrt rsync://ftp-stud.hs-esslingen.de/fedora/linux/updates/7/i386 --exclude=debug/ --exclude=repodata/ --exclude=*debuginfo* --exclude=*i18* --exclude=*langpack* /var/www/html/yum/updates/7
#rsync -avrt rsync://ftp-stud.hs-esslingen.de/pub/fedora/linux/releases/8/Everything/i386/os/Packages --exclude=debug/ --exclude=repodata/ --exclude=*debuginfo* --exclude=*i18* --exclude=*langpack* /var/www/html/yum/updates/8/Fedora
rm -f -r /var/www/html/yum/updates/8/i386/./olddata
createrepo -q -c /var/www/cache/ /var/www/html/yum/updates/8/i386

repoview -qu http://localhost/yum/updates/8/i386 /var/www/html/yum/updates/8/i386

Pl. make the file executable
#chmod +x /etc/cron.daily/repository