Re: FC3 : help, i broke my yum.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2005-07-11 at 11:13 -0700, Skunk Worx wrote:
> I've ended up with a yum problem on a FC3 machine and am curious if 
> there is a way to fix it.
> 
> 1) I've used rsync to create a local repository on my filesystem. This 
> seems fine. This is in preparation for lan-based updates.

Does directory /space/mirror/fc/core/3/i386/os/repodata exist on your
mirror?

> 2) Earlier in the week, before the rsync, I was running out of drive 
> space, and in a hurry, I deleted /var/cache/yum.

"yum clean packages" would be a better option next time this happens. In
fact I have a cron job to do this every night, to keep the cache tidy.
Did you re-create /var/cache/yum?

> 3) Now I have in my /etc/yum.conf :
> 
> # cat /etc/yum.conf
> [main]
> cachedir=/var/cache/yum
> debuglevel=2
> logfile=/var/log/yum.log
> pkgpolicy=newest
> distroverpkg=fedora-release
> tolerant=1
> exactarch=1
> retries=10
> 
> [base]
> name=Fedora Core $releasever - $basearch - Base
> baseurl=file:///space/mirror/fc/core/$releasever/$basearch/os/
> 
> [extras]
> name=Fedora Extras - $releasever - $basearch
> baseurl=file:///space/mirror/fc/extras/$releasever/$basearch/

It is better to put repo definitions as .repo files in /etc/yum.repos.d
from FC3 onwards, rather than editing yum.conf. This helps
maintainability, and is the "official" way of doing things.

> 4) When I ran "yum update" the first time, it gave a backtrace into 
> python, and then I remembered I had deleted the var/cache/yum 
> directory...oops.
> 
> 5) Running "yum update" again took a little while, but it ran. However, 
> the final line of output is :
> 
>   No Packages marked for Update/Obsoletion
> 
> ...which I don't think is correct, since I can see newer packages in the 
> rsync repo (and the /var/log/yum.log shows the last update was June 8th.)

You have mirrors of [extras] and [base] but not of [updates-released]?

> "yum install" is working properly, just no updates.
> 
> Changing the baseurl's to http://some-net-repo yields the same result; 
> install of a package is okay, but no update/obsoletions are detected.
> 
> Any ideas on how to correct this? Yum does not seem to be able to detect 
> the presence of the newer packages anymore.

Can you post the output of "yum check-update"?

Paul.
-- 
Paul Howarth <paul@xxxxxxxxxxxx>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux