Author Topic: Local Repository from 4 disc DVD  (Read 546 times)

33

  • Guest
Local Repository from 4 disc DVD
« on: November 15, 2010, 08:47:01 PM »
Greetings, I am having trouble transferring data from the OSdisc Repository 4 disc set to Local Synaptic.
The machine is only and installed PCLinuxOS 2010.07, with dial up service. The Repository set is also 2010.07 and purchased at same time.
In Root, and in Synaptic, the First Disc folders (base and RPMS.main) transferred OK using the Edit tab and then (Add CD-ROM). These also show up in the Repository as Type (rpm-src) and URI (cdrom).
The 2nd, 3rd, and 4th Disc were not quite as graceful, mounting may or may not have been successful, as the (progress indicator bar) was about half when this screen was overlaid,
(E: Unable to locate any package files. Perhaps this is not an APT enabled disc.)
Using the Dolphin file manager, the folders can be seen,
Disc 2, RPMS.games and .main
Disc 3, RPMS.KDE, .nonfree, and .special
Disc 4, RPMS.updates and inside of these folders are a bunch of packages.
The first disc also contains a README folder with instructions, but I am having trouble with the terminal-based editor.
I read also that one should update the OS before trying to install Synaptic packages, but with the speed tester, I am at 3807 bytes/sec. This installed 2010.07 version may never be in want of an update anyway, as I am writing from 0.93a, Thank you very much PCLinuxOS.
Is there an easier way to do this, or must I use the instructions with the disc set?
Thank you for reading.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6849
  • MLU
Re: Local Repository from 4 disc DVD
« Reply #1 on: November 16, 2010, 04:08:10 PM »
If you have the storage space, then the directories containing the RPM packages could be copied from DVD to HDD, and then create the necessary files to make the HDD copy a local repository which you can access like any other using Synaptic.

If you have the space available then this might be worth trying .....  at worst it won't work and you still have the files on the DVDs.

regards.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6849
  • MLU
Re: Local Repository from 4 disc DVD
« Reply #2 on: November 16, 2010, 04:17:19 PM »
In case the above interests you, here is how it may be done .....

Create a directory ...  in my case it is called 2010 because that is what I am running .... and into that copy from the DVDs all the directories name  RPMS.??

When finished that, copy the following lines into a new file opened with a text editor making sure the first line is not blank.
( I have a partition mounted on /mnt/Local_Repository especially for the purpose )


Quote
#!/bin/bash
#When adding or deleting RPMs from the local repository I must run the following
#command to update the package lists etc.

# Open a terminal while in /mnt/Local_Repository and run this script


(
echo ; sleep 2
genbasedir --flat --bz2only --progress /mnt/Local_Repo/2010
echo ; sleep 1
) | zenity --width=400 --progress --title "Updating the Repository Database ....." --pulsate ;
exit 0

I named the file "update.sh".
Make the file executable ......  tick the box under permissions for this.

After that you can put your repository as the active one in Synaptic and update and install packages from that location.

I realise it may not be what you want to do ....  just a suggestion  ;)

There may even be a way to achieve something similar from the DVDs ....  I have bever seen one of those.

Note: You may need to install   pkgutils  if it is not already installed, to use the   genbasedir   command.
regards.
« Last Edit: November 16, 2010, 04:22:01 PM by Just19 »

33

  • Guest
Re: Local Repository from 4 disc DVD
« Reply #3 on: November 16, 2010, 07:24:41 PM »
Thank you for your thoughts, I will try this. It will be good for me to plow into.