View Full Version : Cannot install any packages using yum - FC6

10th November 2006, 07:20 AM

I installed Fedora core 6 on a i386 box and the install was painless. however, when i tried
to install net-snmp-devel-5.3.1-11.fc6.i386.rpm from the CDROM i got some errors.

[root@bfc11 RPMS]# pwd
[root@bfc11 RPMS]# yum install net-snmp-devel-5.3.1-11.fc6.i386.rpm
Total download size: 5.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): beecrypt-devel-4.1 100% |=========================| 152 kB 00:11
(2/2): elfutils-devel-0.1 100% |=========================| 115 kB 00:15
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Public key for net-snmp-devel-5.3.1-11.fc6.i386.rpm is not installed

Any help to fix this problem ? Thanks.

Yashesh Bhatia.

10th November 2006, 07:39 AM
I'm thinking you need to browse the disc for a gpg key and import it. Something like
rpm --import /mnt/cdrom/Fedora/RPM-GPG-KEY
There are several, but I believe the first one is the one you need for the CD/DVD but I couldn't swear to it (I believe the rest are for repos)

10th November 2006, 09:46 AM
Yashesh i sugest instead of yum you should use apt. Creating an apt repo is much more simpler.
copy all the rpms in a folder visible to your webserver.

mkdir -p /var/www/html/fc6/RPMS.stable

copy all rpms from the DVD to RPMS.stable dir and issue command

genbasedir /var/www/html/fc6

Thiswill create an ready to use apt repo.

Now add this repo to your apt-get source list.

echo 'rpm http://localhost fc6 stable' > /etc/sources.list.d/local.list

This line will create a file local.list with an entry rpm http://localhost fc6 stable in it.

Now update the local apt package list

apt-get update

Now you are done. Just use "apt-get install packagename" to install what ever package you want to install from the DVD. Done

Note: you should be having a working web server.