LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 06-12-2004, 05:19 PM   #1
AcerKev
Member
 
Registered: Aug 2003
Location: Nottingham
Distribution: XP SP2, Vista, Mandrake/iva 9.2 - 2007
Posts: 50

Rep: Reputation: 15
Localised URPMI Source


With a number of Mandrake 10 installs coming up at work and the endless post-install cd swapping i thought now would be the time to set up a local mirror for two jobs

Job 1 would be to keep the Mandrake 10 CDS on

so
/home/mandrake/10/RPMS/
/home/mandrake/10/RPMS2/
/home/mandrake/10/RPMS3/
would hold the main files and
/home/mandrake/generic/RPMS
would hold things like the JRE RPM / Nvida Drivers and anything else that we use. (eventually, file stucture is different now - using an antiquated laptop for testing)


With the files in /rpm/RPMS/ and the following command
uprmi.addmedia "Local RPM Repository" file://rpms/
everything works fine - add a new RPM and run
uprmi.update "Local RPM Repository"
and the Control Centre can see it.


However when i try to point it to the ftp

/home/username/rpm/RPMS on the remote server holds the files

the line i'm using is
uprmi.addmedia "Local RPM Repository via FTP" ftp://userass@127.0.0.1/rpms/
and i've tried
uprmi.addmedia "Local RPM Repository via FTP" ftp://userass@127.0.0.1/rpms/RPMS/
(in Konquerour the files can be seen at URL)
I get a number of messages along the lines of
...retriving failed: curl: (19) Given file does not exist

presumably this is because the indexes havn't been generated on the server (as the file in question is synthesis.hdlist.cz) so basically - how do i create the index for the RPMS on the server?
 
Old 06-12-2004, 08:03 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,706

Rep: Reputation: 245Reputation: 245Reputation: 245
From memory, the command for generating an hdlist is "genhdlist". IIRC you just need to run:

$ genhdlist <path to directory with rpms>
 
Old 06-13-2004, 04:31 AM   #3
AcerKev
Member
 
Registered: Aug 2003
Location: Nottingham
Distribution: XP SP2, Vista, Mandrake/iva 9.2 - 2007
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by kilgoretrout
From memory, the command for generating an hdlist is "genhdlist". IIRC you just need to run:

$ genhdlist <path to directory with rpms>
hmm, that kinda works.

It appears in the package manager when using "All packages by medium repository"
When you select an item then click install it starts to go through normally then when it gets to 100% it comes up with an error
"There was a problem during installation"

"medium "Local FTP Repository" uses and invalid list file: mirror is probably not up-to-date, trying to use alternate method"

Once the list is refreshed the item disappears, but it doesn't appear to be installed although you can uninstall it? (actually, just tried a KDE Theme and that installed , now, how do i get rid of the error?)

Last edited by AcerKev; 06-13-2004 at 04:43 AM.
 
Old 06-13-2004, 08:51 PM   #4
courtrrb
Member
 
Registered: Sep 2003
Location: Iowa, US
Distribution: MDK Since V6.5
Posts: 571

Rep: Reputation: 30
If you still have the iso's why dont you just mount them and set the sources to the mounted directory instead. That what I do. Well actually I have a script the creates the directory's and the information to the fstab file mount them and then adds them to the urpmi database after removing the original source info. After mounting it add the update-sources and then updates the system.
 
Old 06-14-2004, 12:10 PM   #5
AcerKev
Member
 
Registered: Aug 2003
Location: Nottingham
Distribution: XP SP2, Vista, Mandrake/iva 9.2 - 2007
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by courtrrb
If you still have the iso's why dont you just mount them and set the sources to the mounted directory instead. That what I do. Well actually I have a script the creates the directory's and the information to the fstab file mount them and then adds them to the urpmi database after removing the original source info. After mounting it add the update-sources and then updates the system.
That might work, although i'm not sure how to mount ISO images (if i could find them!)

I don't fancy having more NFS mounts (some have 20 odd already) as a networkless bootup takes forever (15 minutes this morning) which each mounting attempt fails - hence my preference for FTP - connects as it needs it and then closes.

Additionally - my download folder will still throw up the error - Java, NVida drivers etc...

The cds will probably end up on an old server when it is retired from general service this summer (too slow for our needs but a PII200 is fast enough for FTP).

Cron will be generating the hdlist on the server every night and running the urpmi.update about 2 hours after that. (and they both will be runable with a desktop shortcut)
 
Old 06-14-2004, 03:00 PM   #6
courtrrb
Member
 
Registered: Sep 2003
Location: Iowa, US
Distribution: MDK Since V6.5
Posts: 571

Rep: Reputation: 30
Add this line to your fstab file for each iso

/ISOS/10/Mandrakelinux10.0-Official-Powerpack-CD1.i586.iso /Backup/Mandrake10.0/1 iso9660 mode=444,loop 0 0

Replacing the path to the iso and to where you want them mounted.

then this will add them to your urpmi database

urpmi.addmedia cd1 file://Backup/Mandrake10.0/1

Again replacing the path to the mounted location for each iso.

Hope this helps
 
Old 06-14-2004, 03:22 PM   #7
AcerKev
Member
 
Registered: Aug 2003
Location: Nottingham
Distribution: XP SP2, Vista, Mandrake/iva 9.2 - 2007
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by courtrrb
Add this line to your fstab file for each iso

/ISOS/10/Mandrakelinux10.0-Official-Powerpack-CD1.i586.iso /Backup/Mandrake10.0/1 iso9660 mode=444,loop 0 0

Replacing the path to the iso and to where you want them mounted.

then this will add them to your urpmi database

urpmi.addmedia cd1 file://Backup/Mandrake10.0/1

Again replacing the path to the mounted location for each iso.

Hope this helps
hmm, thats a bit useless, as one machine will be sharing them out (an old PII200 with 3x18GB drives) and the clients (mine with 500MB free disc space) will be accessing them
 
Old 06-14-2004, 06:19 PM   #8
courtrrb
Member
 
Registered: Sep 2003
Location: Iowa, US
Distribution: MDK Since V6.5
Posts: 571

Rep: Reputation: 30
mount the directory that they are stored in. when you mount them they don't take any space on the clients.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
URPMI - DVD Source RySk8er30 Mandriva 1 05-17-2005 06:35 AM
How do I remove a specific source from urpmi? KezzerDrix Mandriva 2 04-02-2005 09:50 AM
Don't want kernel-source in urpmi updates toes Mandriva 6 03-09-2005 08:03 PM
Trouble addiing URPMI source shea1roh Mandriva 2 12-15-2004 10:57 AM
is texstar a safe URPMI source? JadeWolf324 Mandriva 5 12-18-2003 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration