Main Page | Report this Page
Linux Forum Index  »  Linux - Red Hat Forum  »  How to use yum on FC1 without www?
Page 1 of 1    

How to use yum on FC1 without www?

Author Message
Fred
Posted: Sun Mar 07, 2004 1:06 pm
Guest
My FD1 box is not connected to the Internet. I want to use yum to
update rpm's from either a cd or usb device on the same machine. I
intend to do updates this way for several machines later.

I first changed the cache location in the /etc/yum.conf file to read a
directory where I placed the ".rpm" and matching ".hdr" files and edited
the "header.info" file [showing only the update files I included in the
dir].

It didn't work.

Next, I added the following line to the [base] and [updates-released]
sections in "/etc/yum.conf"
"baseurl=//mnt/usb/yum" (the location of the "rpm" files and the
matching "hdr" and "info" files:

yum responded w/:
"using ftp, http[s], or file for server, aborting - //mnt/usb/yum"

What should I do next?
Thanks,
Fred
Recently demoted to linux newbie
 
Markku Kolkka
Posted: Sun Mar 07, 2004 2:33 pm
Guest
Fred wrote:
Quote:
Next, I added the following line to the [base] and [updates-released]
sections in "/etc/yum.conf"
"baseurl=//mnt/usb/yum" (the location of the "rpm" files and the
matching "hdr" and "info" files:

yum responded w/:
"using ftp, http[s], or file for server, aborting - //mnt/usb/yum"

What should I do next?

cd to the directory where you stored the rpm files and run yum-arch,
change the baseurl to "file://path/to/files"

See man yum-arch and man yum.conf for details.

--
Markku Kolkka
markku.kolkka@iki.fi
 
Fred
Posted: Mon Mar 08, 2004 10:49 pm
Guest
[snip]
Quote:
cd to the directory where you stored the rpm files and run yum-arch,
change the baseurl to "file://path/to/files"

See man yum-arch and man yum.conf for details.
--
Markku Kolkka
markku.kolkka@iki.fi
Yum couldn't find the rpm files. It's looking somewhere besides the

directory where yum-arch created the header.info file. I tried making
the directory structure as in man files. This would be nice if I could
get it to work. There dependency problems with using plain rpm to
upgrade SFree86 . . .
Thanks,
Fred
 
Jimbo
Posted: Tue Mar 09, 2004 8:51 am
Guest
if you have apache installed create the default website with
/mnt/usb/yum as the root and add add it to the yum.conf

[local yum repo]
name=Localhost Yum Repo
baseurl=http://localhost/

That should work fine, you could also do the same for local ftp.

Failing that put your box on the internet =)

James

Fred said the following on 09/03/2004 03:49:

Quote:
[snip]

cd to the directory where you stored the rpm files and run yum-arch,
change the baseurl to "file://path/to/files"

See man yum-arch and man yum.conf for details.
--
Markku Kolkka
markku.kolkka@iki.fi

Yum couldn't find the rpm files. It's looking somewhere besides the
directory where yum-arch created the header.info file. I tried making
the directory structure as in man files. This would be nice if I could
get it to work. There dependency problems with using plain rpm to
upgrade SFree86 . . .
Thanks,
Fred
 
Fred
Posted: Tue Mar 09, 2004 11:47 pm
Guest
On Tue, 09 Mar 2004 13:51:39 +0000, Jimbo <jimbo_@_pybe.co.uk> wrote:

Quote:
if you have apache installed create the default website with
/mnt/usb/yum as the root and add add it to the yum.conf
I don't

[local yum repo]
name=Localhost Yum Repo
baseurl=http://localhost/

That should work fine, you could also do the same for local ftp.

Failing that put your box on the internet =)

James

The whole point is not to have the box on the internet.


In the "man yum.conf" [baseurl] section it says "Can have ftp://,
http:// or file:// url.
I think I'm close. Maybe some syntax?

I ran yum-arch and it created subdirectories of
/mnt/usb/yum/headers # with headers and the header.info file

It also created several directories and files in cache
/var/cache/yum//mnt/usb/yum/base/headers/ #header files but no
header.info file.
/var/cache/yum//mnt/usb/yum/packages/ #empty . . . no files.

In yum.conf I have :

[Base]
name=USB Memory - yum rpms
baseurl=file://mnt/usb/yum/

when I run yum check-updates XFree*
I get:
"using ftp, http(s), or file for servers, aborting - //mnt/usb/yum/"

I even tried to add the rpm's to the "/var/cache/yum/packages/"
directory.

When I put all the files in the /mnt/usb/yum directory I get this
message:

[root@localhost yum]# yum check-update Xfree86*
Gathering header information file(s) from server(s)
Server: USB Memory - yum rpms
retrygrab() failed for:
file://mnt/usb/yum/headers/header.info
Executing failover method
failover: out of servers to try
Error getting file file://mnt/usb/yum/headers/header.info
[Errno 5] OSError: [Errno 2] No such file or directory:
'/usb/yum/headers/header.info'

The header.info file is in above directory.
Help!
Fred
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Tue Nov 24, 2009 4:07 am