How to install jigdo on CentOS and RHEL

Posted in Linux/Unix/BSD -

I create CDs and DVDs for my Linux CD Mall website on a CentOS 4 machine, and create the new ISO images for Debian using jigdo. This is the first of several posts which will look at jigdo, and looks at how to install jigdo on CentOS and Red Hat Enterprise Linux, because the necessary package is not included in the default software repositories.

What is jigdo?

jigdo is a method of downloading CD and DVD images over the Internet (and other large files) and is used by Debian and Ubuntu when new releases are created. jigdo files contain a list of the files that need to be included in the new CD or DVD ISO image and you can get the files from local sources and over the Internet. This means when you want to create ISO images for updated versions of Debian, you only need to download the changed files. This saves both bandwidth and and time.

Installing jigdo on CentOS and RHEL

You need to download and install the correct RPM file from http://dag.wieers.com/rpm/packages/jigdo/ . The choices currently available are for RHEL/CentOS 1 through 5 (they're the ones labelled eg jigdo-0.7.3-1.el5.rf.i386.rpm where the text in bold indicates Enterprise Linux 5), Red Hat 9, and Fedora 1 through 3. There are also source RPMs available.

Download the file first, and then use yum from the command line so install it running either as the root user, or using the sudo command:

wget http://dag.wieers.com/rpm/packages/jigdo/jigdo-0.7.3-1.el4.rf.i386.rpm
yum install jigdo-0.7.3-1.el4.rf.i386.rpm

Yum will work out any dependencies that are required and download and install those as well. In my case, I don't have any X stuff installed so it had to download a few additional packages.

The output from my install was as follows:

Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages from CentOS-4 - Updates
Finished
Excluding Packages from CentOS-4 - Base
Finished
Reducing CentOS-4 - Contrib to included packages only
Finished
Parsing package install arguments
Examining jigdo-0.7.3-1.el4.rf.i386.rpm: jigdo - 0.7.3-1.el4.rf.i386
Marking jigdo-0.7.3-1.el4.rf.i386.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package jigdo.i386 0:0.7.3-1.el4.rf set to be updated
--> Running transaction check
--> Processing Dependency: libgtk-x11-2.0.so.0 for package: jigdo
--> Processing Dependency: libatk-1.0.so.0 for package: jigdo
--> Processing Dependency: libgdk_pixbuf-2.0.so.0 for package: jigdo
--> Processing Dependency: libpango-1.0.so.0 for package: jigdo
--> Processing Dependency: libgdk-x11-2.0.so.0 for package: jigdo
--> Processing Dependency: libpangoxft-1.0.so.0 for package: jigdo
--> Processing Dependency: libpangox-1.0.so.0 for package: jigdo
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package gtk2.i386 0:2.4.13-22 set to be updated
---> Package atk.i386 0:1.8.0-2 set to be updated
---> Package pango.i386 0:1.6.0-9 set to be updated
--> Running transaction check

Dependencies Resolved

=====================================================
 
Package                 Arch       Version          Repository        Size
=====================================================
Installing:
 jigdo                   i386       0.7.3-1.el4.rf   jigdo-0.7.3-1.el4.rf.i386.rpm  1.2 M
Installing for dependencies:
 atk                     i386       1.8.0-2          base              170 k
 gtk2                    i386       2.4.13-22        base              4.3 M
 pango                   i386       1.6.0-9          base              271 k

Transaction Summary
=====================================================
Install      4 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 5.9 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: pango                        ######################### [1/4]
  Installing: atk                          ######################### [2/4]
  Installing: gtk2                         ######################### [3/4]
  Installing: jigdo                        ######################### [4/4]

Installed: jigdo.i386 0:0.7.3-1.el4.rf
Dependency Installed: atk.i386 0:1.8.0-2 gtk2.i386 0:2.4.13-22 pango.i386 0:1.6.0-9
Complete!

As you can see it's now installed and ready to go.

V3 DSA signature: NOKEY Error

If you get the following error when you attempt to install jigdo with yum:

warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 6b8d79e6
Public key for jigdo-0.7.3-1.el4.rf.i386.rpm is not installed

then yum doesn't want to install it because you don't have the public key for the rpm file's repository installed. Refer to yesterday's post "Public key not installed error when installing from Dag RPM Repository" for details about how to install this, and you won't get the error when you install the jigdo RPM file.




Comments