Jump to content

can I reuse hdlist.cz from one PC onto another?


emmanuel_uk
 Share

Recommended Posts

I have 2 PCs. Once I have updated hdlist.cz on the desktop PC,

can I copy hdlist.cz from the desktop on the laptop

and make urpmi update its database or reread hdlist.cz ?

In short, is copying and replacing hdlist.cz enough, or it is more complicated than that?

 

I do not want to make the desktop a full blown local server/repository of rpms+ hdlist

for the laptop (I would not know anyway)

 

Thanks

Link to comment
Share on other sites

To set up a rsync server for the official files

 

rsync -auvH --partial --stats --progress --bwlimit=50 --exclude-from=/mnt/External/mlexclude.txt carroll.cac.psu.edu::MandrivaLinux/official/2007.0/i586/media /mnt/External/Mandrivalinux/2007.0/i586/media/

 

In the exclusion file i have things i really know i don't ever want, some are the language files and other directories, you will need quite a bit of space for this..

 

You can add an exclusion for the types of kernels that you don't want.. or other things.

 

You may notice the bandwidth is limited to 50Kbs.. Nice speed does not kill any of the other users completely.

 

I warn you it will take a while to come down, but this is perfect for offices..

 

If you restart it half way it only gets the changes...

 

You can see above my files are on an external drive (Maxtor 80GB USB) I can take home and upgrade other computers with out any Internet.

 

In the exclusion file you can add files that you don't want excluded .

instead of a - at the front put

+ *dooodad-files*

this will get all files with the line dooodad-files in the name..

 

You can set it also to have a maxsize.

 

Maybe run mutiple versions get everything under this size

Then only these files which you know are required but are big.

 

 

mlexclude.txt

Link to comment
Share on other sites

I used to run a mirror too with rsync, the parameter:

 

--delete

 

is good, as it then deletes all the old stuff before it downloads the new stuff. This means you don't get a history of old packages that have been replaced with new versions. Takes up a lot of space otherwise.

 

2006 updates was about 1.2GB when my mirror last synced months ago before moving to 2007. Contrib and Main are huge, and will between them take 10GB of space. The current main/contrib for 2007 is about 12GB for me. Or was, until I had to wipe my mirror because the machine was required for something else :sad:

Link to comment
Share on other sites

Thanks for all this. However interested I am in running a local mirror,

for now I would handle this mostly by hand. I have tweaked urpmi/drakrpm so that downloaded rpms are not removed from the cache. I can move these rpms around via USB pendrive, or one day via nfs if I get the 2 PCs connected at the same time.

 

What I am really asking is how to reuse hdlist.cz, the file itself,

not the whole tree. Any idea?

Link to comment
Share on other sites

No idea, can try copying them if you like. Here is where I found them:

 

[root@europa ian]# slocate hdlist
/var/lib/urpmi/synthesis.hdlist.plf-nonfree.cz
/var/lib/urpmi/hdlist.Powerpack DVD i586.cz
/var/lib/urpmi/synthesis.hdlist.contrib.cz
/var/lib/urpmi/synthesis.hdlist.Powerpack DVD i586 (non-free).cz
/var/lib/urpmi/synthesis.hdlist.main_updates.cz
/var/lib/urpmi/synthesis.hdlist.contrib_updates.cz
/var/lib/urpmi/synthesis.hdlist.Powerpack DVD i586.cz
/var/lib/urpmi/synthesis.hdlist.plf-free.cz
/var/lib/urpmi/synthesis.hdlist.main.cz
/var/lib/urpmi/hdlist.Powerpack DVD i586 (non-free).cz

 

of course, you'll have to make sure your repositories have the exact names on both machines, else it won't read the hdlists when you copy them across.

 

I use compressed indexes, hence the synthesis.hdlist.cz since they are much faster to download. Main and contrib are 25MB each with the normal hdlist, much smaller at 600kb with compressed index.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...