[Yum] local file update

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

 



On Tue, 2004-08-10 at 10:25 -0700, Michael Stenner wrote:
> On Tue, Aug 10, 2004 at 10:08:39AM -0700, Marshall Clark wrote:
> > On Tue, 2004-08-10 at 09:32 -0700, Michael Stenner wrote:
> > > On Tue, Aug 10, 2004 at 11:21:22AM -0500, Troy Dawson wrote:
> > > > I recently did this and this was the format that I had to use.
> > > > 
> > > >   baseurl=file://<hostname>/path/to/yum/repository/
> > > 
> > > Yes.  This is the correct format for file urls.  Leaving
> <hostname>
> > > blank means local host, so if you have something
> in /var/repos/fc1,
> > > then the baseurl would be:
> > > 
> > >    baseurl=file:///var/repos/fc1
> > > 
> > baseurl=file:///marshall.localnet.cxm/home/mclark/x86_64updates/
> > 
> > Well that was it as far as for yum going there first. But it says it
> > can't find the file.  Now I get:
> > [Errno 5] OSError [Errno 2] No such file or directory
> > 
> >
> '/marshall.localnet.cxm/home/mclark/x86_64updates/headers/header.info' 
> > 
> > I changed dir from /root to /home/mclark/x86_64updates/headers/ 
> > and the file is there!
> 
> Yes, but the path you SPECIFIED is /marshall.localnet.cxm/...
> 
> Read my message again and then try:
> 
>   baseurl=file:///home/mclark/x86_64updates/
> 
> 					-Michael
I already tried it your way the first time!  I got Error 4!
Here is the output of the command, it goes past the file and on to ftp
servers.
Is my yum.conf messed up?
Thanks in advance.



-- 
Marshall Clark <mclark323@xxxxxxx>
-------------- next part --------------
[root@marshall root]# yum update -y
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - x86_64 - Base
Server: Fedora Core 2 - Development Tree
retrygrab() failed for:
  ftp://download.fedora.redhat.com/pub/fedora/linux/core/development/x86_64/headers/header.info
  Executing failover method
failover: out of servers to try
Error getting file ftp://download.fedora.redhat.com/pub/fedora/linux/core/development/x86_64/headers/header.info
[Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
-------------- next part --------------
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20

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

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

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

#[development]
#name=Fedora Core $releasever - Development Tree
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux