Author Topic: [SOLVED] gbd and general repository  (Read 324 times)

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1758
  • Satyameva Jayate | Truth Alone Triumphs.
[SOLVED] gbd and general repository
« on: January 16, 2013, 07:12:53 AM »
Is it correct that gbd command is used to create / update a local repository of built packages?

Is it possible to update this local repository indexes without also updating the general repository indexes (which happens when we run gbd and answer Yes) ?
« Last Edit: January 16, 2013, 09:26:35 AM by sling-shot »
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11057
  • MLUs Forever!
Re: gbd and general repository
« Reply #1 on: January 16, 2013, 07:18:23 AM »
All I can say is your question does not quite make sense to 'me' .....  but you might be assuming a particular set up .....

I use gbd on my local repository which is separate to my copy of the main repository (which I do not interfere with)

MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1758
  • Satyameva Jayate | Truth Alone Triumphs.
Re: gbd and general repository
« Reply #2 on: January 16, 2013, 07:29:48 AM »
Here is a sample commandline output for gbd :
Code: [Select]
[packager@localhost ~]$ gbd
rm -f /home/packager/src/apt/pclinuxos/2010/base/*
genbasedir --flat --bz2only --progress /home/packager/src/apt/pclinuxos/2010 athlon i586 noarch
Components: athlon i586 noarch
Processing pkglists... athlon i586 0004/0004 noarch 0005/0005 [done]
Processing srclists... [done]
Updating component releases... athlon i586 noarch [done]
Creating global release file... [done]
Appending MD5Sum... athlon i586 noarch [done]
All your base are belong to us!!!

Update apt package list? [y/N] y

Please enter root Password:
Get:1 http://ftp.nluug.nl megagames release [503B]
Get:2 http://ftp.nluug.nl pclinuxos/2010 release [2884B]
Fetched 3387B in 5s (572B/s)
Hit http://ftp.nluug.nl megagames/megagames pkglist               
Hit http://ftp.nluug.nl megagames/megagames release
Hit http://ftp.nluug.nl pclinuxos/2010/main pkglist
Hit http://ftp.nluug.nl pclinuxos/2010/main release
Hit http://ftp.nluug.nl pclinuxos/2010/updates pkglist
Hit http://ftp.nluug.nl pclinuxos/2010/updates release
Hit http://ftp.nluug.nl pclinuxos/2010/nonfree pkglist
Hit http://ftp.nluug.nl pclinuxos/2010/nonfree release
Hit http://ftp.nluug.nl pclinuxos/2010/kde pkglist
Hit http://ftp.nluug.nl pclinuxos/2010/kde release
Hit http://ftp.nluug.nl pclinuxos/2010/games pkglist
Hit http://ftp.nluug.nl pclinuxos/2010/games release
Hit http://ftp.nluug.nl pclinuxos/2010/xfce4 pkglist
Hit http://ftp.nluug.nl pclinuxos/2010/xfce4 release
Reading Package Lists... Done
Building Dependency Tree... Done

Note that there is a question asked in the middle for which if I answer No, my local repo is not updated.

In the last part, if the earlier answer was Yes, it hits the public mirrors to get the latest repository list. If I do not have an internet connection, then it fails with error.

I want an ability to update only the local repository which is what changes when I package, correct errors, repackage etc.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11057
  • MLUs Forever!
Re: gbd and general repository
« Reply #3 on: January 16, 2013, 07:48:50 AM »
Updating the database for my local repo only, I use

Code: [Select]
genbasedir --flat --bz2only --progress /media/repos/32bit_Local_Repository/pclinuxos/2010
whenever I add or delete an RPM.

MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 740
Re: gbd and general repository
« Reply #4 on: January 16, 2013, 08:32:50 AM »
Is it possible to update this local repository indexes without also updating the general repository indexes (which happens when we run gbd and answer Yes) ?

Only by unticking the general repository in synaptic (or commenting it out in sources.list).

Terry.
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1758
  • Satyameva Jayate | Truth Alone Triumphs.
Re: gbd and general repository
« Reply #5 on: January 16, 2013, 09:26:14 AM »
Solved. Thanks for the help :)
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6