SUSE Conversations


Create an ISO from your openSUSE DVD and add it as an installation source from the command line



By: rgdacosta

July 18, 2008 1:21 pm

Reads:4609

Comments:6

Rating:0

Tired of keeping your DVD’s around? Want to create ISO images and add them as installation sources?

These commands have been tested on openSUSE 11.

  1. First create a directory where you will store your ISO files.

    mkdir /home/sources

  2. Now create your ISO

    mkisofs -iso-level 4 -J -R -o /home/sources/su1100.001.iso /media/SU1100.001/

  3. Now we add the ISO as a software repository

    zypper ar -c -t yast2 “iso:/?iso=/home/ricardo/sources/su1100.001.iso” “openSuSE 11″

  4. Verify that the service has been successfully added

    zypper repos

  5. Now we can delete the DVD repository as an installation repository

    zypper rr 1

  6. Let’s quickly enable automatic refresh (optional)

    zypper mr -r “openSuSE 11″

  7. Now we can finally test the ISO repository and install a package like nmap

    zypper in -y nmap

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags:
Categories: openSUSE, Technical Solutions

Disclaimer: As with everything else at SUSE Conversations, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.

6 Comments

  1. By:vinukaimal

    Hi,

    Is there a way to make thse ISO images a bootable one so that we can use it VirtualBox to boot up my virtual Machines?. Also It will be very helpful for distributing the ISO to others.

    Thanks,

    VinuKaimal

  2. By:rgdacosta

    Hello!

    The quick and easy way to do it is to use dd.

    If you like I can explain how to create a bootable ISO but for now:

    dd if=/dev/cdrom of=/home/sles10sp1.iso

    Your DVD is already 1)bootable 2) in the ISO9660 format so we can copy the raw data and it will work.

    Ricardo

  3. By:Anonymous

    Hi!

    Is it possible to use the DVD ISO downloaded from opensuse.org as a repository?

    The ISO is on my ntfs partition which I already mounted it.

    Thanks,
    Fauzan

  4. By:Anonymous

    Absolutely! Assuming that your ISO is in your home directory (indicated with a ~) and that your ISO is called su1100.001.iso you could use the command below!

    zypper ar -c -t yast2 “iso:/?iso=~/sources/su1100.001.iso” “openSuSE 11″

    Feel free to reply with any other questions

    rdc

  5. By:Anonymous

    I am using the DVD as a installation source after copying it to the /sources folder but when the machine starts to install the erros on the packages.DU file saying it fails checksum verification. I have checked the sha1sum and that matches with what is in the contents file. I am at a bit of a loss as to what the problem is.
    any help greatly appreciated

  6. By:kalac

    And does anyone know how to create DVD addon from online repositories?
    Not a bootable DVD, but some multimedia goodies, codecs and tools.

Comment

RSS