It's a snap and you can let urpmi automatically do it for you.
Place all of your RPM's in a seperate directory.
Make sure that you do NOT include ANY .cz files in the directory.
Now open the "Software Media Manager" and add this directory as a LOCAL source.
Give the source a name when you do, such as MyRPMs.
Let it do it's thing when you hit OK.
Exit out.
Now you will find that there is a NEW entry called /varlib/urpmi/hdlist.MyRPMs.cz etc.
Copy these files to the directory containing the RPM's and rename them to hdlist.cz, etc.
AS LONG AS YOU DO NOT CHANGE THE CONTENTS OF THE RPM directory, urpmi will pull from the hdlist.cz file you have created.
If you add NEW RPM's this file will be out of date.
So, as a result it is NOT a good idea to build one as I've indicated...
Rather add your local source, then any time you dump new RPM's into the directory, merely enter the Software Media Manager and "Update" the source to adjust it for the new RPM's.
The latter is much easier...
However the former trick is GREAT when you will be burning the RPM's to a CD or DVD where-in they do not change.
This causes URPMI NOT to have to re-read each RPM (which can take a while) and merely use the .cz files...
|