LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Package updating/installing tool in FC1 (https://www.linuxquestions.org/questions/linux-software-2/package-updating-installing-tool-in-fc1-260443/)

vharishankar 11-29-2004 05:07 AM

Package updating/installing tool in FC1
 
I'm using Fedora core 1 and I noticed that a lot of packages were outdated and figured I needed an update. But Up2date just keeps hanging after the packages start downloading (that is after RPM headers have been received and I choose from the list of packages to update).

Is there any other tool that will automatically detect outdated packages (RPMs) in Fedora and allow me to update without having to manually add the list of packages to update? I'm willing to use the command line.

XavierP 11-29-2004 05:09 AM

YUM is the preferred tool in Fedora. Also apt-get via apt4rpm.

vharishankar 11-29-2004 05:12 AM

I tried it,

I get this error when I run
Code:

yum check-update
.
Code:

Gathering header information file(s) from server(s)
Server: Fedora Core 1 - i386 - Base
Error - /var/cache/yum/base/header.info cannot be found
Please ask your sysadmin to update the headers on this system.


XavierP 11-29-2004 05:43 AM

In yum.conf, which repositories are set up?

vharishankar 11-29-2004 05:46 AM

Here's the YUM configuration file.
Code:

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1

[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://fedora.redhat.com/releases/fedora-core-$releasever

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://fedora.redhat.com/updates/released/fedora-core-$releasever

#[updates-testing]
#name=Fedora Core $releasever - $basearch - Unreleased Updates
#baseurl=http://fedora.redhat.com/updates/testing/fedora-core-$releasever


XavierP 11-29-2004 06:21 AM

I tried out Fedora/YUM once and found that the default repositories worked, at best, sporadically.

Try these in place of the existing (put a # mark in front of the existing ones so you can 'roll back' if you need to):
http://linux.duke.edu/projects/yum/repos/ (these are the guys who (I believe) wrote YUM)
http://www.brandonhutchinson.com/Fed...ositories.html
http://www.xades.com/proj/fedora_repos.html (slow to load the page)

vharishankar 11-29-2004 06:27 AM

Thanks,

Should I run yum check-update as super user?

XavierP 11-29-2004 09:39 AM

Yes. I was always under the impression that it could only be run as su......but what do I know? ;)


All times are GMT -5. The time now is 08:00 PM.