[SLL] Case for forcing install without dependencies?
Paul A. Franz, P.E.
paul at eucleides.com
Sun Oct 5 22:43:58 PDT 2008
On Sun, October 5, 2008 9:50 pm, Brian C. Lane wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Paul A. Franz, P.E. wrote:
>> I found an rpm I need, right version and all. Has dependencies but I possibly have
>> the
>> right stuff installed, just not the dependent rpm's:
>>
>> [root at Beaker tmp]# rpm -ivh spamassassin-.64-2.1.fc1.dag.i386.rpm
>> warning: spamassassin-2.64-2.1.fc1.dag.i386.rpm: V3 DSA signature: NOKEY, key ID
>> 6b8d79e6
>> error: Failed dependencies:
>> perl(Time::HiRes) is needed by spamassassin-2.64-2.1.fc1.dag
>> perl-Net-DNS is needed by spamassassin-2.64-2.1.fc1.dag
>
> Why aren't you using yum? The rpm appears to be from dag's repository,
> it should have all the dependencies that it needs.
>
> Hmm, I don't remember if fc1 had yum support, so in the case it didn't
> you should still be able to find the dependent rpms in the same repo you
> found the spamassassin rpm.
I does. I just can't make it work. Here's my cobbled up yum.conf
# See the yum.conf(5) man page for information the syntax of this file,
# including failover setup.
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
exclude=kernel*
[base]
gpgcheck=1
name=Fedora Core $releasever - Base
baseurl=http://download.fedoralegacy.org/fedora/$releasever/os/$basearch
# PAF adds this line
baseurl = http://apt.sw.be/fedora/1/en/$basearch/dag
[updates]
gpgcheck=1
name=Fedora Core $releasever updates
$ PAF adds this line
baseurl = http://apt.sw.be/fedora/1/en/$basearch/dag
baseurl=http://download.fedoralegacy.org/fedora/$releasever/updates/$basearch
[legacy-utils]
gpgcheck=1
name=Fedora Legacy utilities for Fedora Core $releasever
$ PAF adds this line
baseurl = http://apt.sw.be/fedora/1/en/$basearch/dag
baseurl=http://download.fedoralegacy.org/fedora/$releasever/legacy-utils/$basearch
# PAF Added the from here down Oct 5, 2008
# Name: RPMforge RPM Repository for Fedora Core 1 - dag
# URL: http://rpmforge.net/
[rpmforge]
name = Fedora Core $releasever - RPMforge.net - dag
baseurl = http://apt.sw.be/fedora/1/en/$basearch/dag
mirrorlist = http://apt.sw.be/fedora/1/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
Which fowled it up somewhat:
yum install spamassassin
Traceback (most recent call last):
File "/usr/bin/yum", line 30, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum/yummain.py", line 152, in main
(log, errorlog, filelog, conf, cmds) = parseCmdArgs(args)
File "/usr/share/yum/yummain.py", line 71, in parseCmdArgs
conf=yumconf(configfile=yumconffile)
File "/usr/share/yum/config.py", line 48, in __init__
self.cfg.read(configfile)
File "/usr/lib/python2.2/ConfigParser.py", line 233, in read
self.__read(fp, filename)
File "/usr/lib/python2.2/ConfigParser.py", line 472, in __read
raise e
ConfigParser.ParsingError: File contains parsing errors: /etc/yum.conf
[line 24]: '$ PAF adds this line\n'
[line 31]: '$ PAF adds this line\n'
Can you suggest what it should be?
--
Paul A. Franz, P.E.
PAF Consulting Engineers
Office 425.440.9505
Cell 425.241.1618
More information about the linux-list
mailing list