Author Topic: Local Lucid 10.04 Package Repo Cache  (Read 2983 times)

stedaniels

  • Regular Poster
  • **
  • Posts: 30
    • View Profile
Local Lucid 10.04 Package Repo Cache
« on: December 06, 2011, 02:56:58 pm »
Hi,

I'm going to be getting heavily into LMCE soon after Christmas. I've rewired a house so all lighting control, audio cables, alarm, video, network and usb cables etc etc. are in place.

My problem is my ADSL is capped. I'd like to stay as close as possible to bleeding edge and have read that any changes are causing all the packages to be rebuilt.

Would it be possible to set up a local repo and build the packages on it for myself?

I envisage the process something like as follows set as a cron on my local proxy:

Code: [Select]
svn up
`magic packaging code`

Then I'll be able to just change the /etc/hosts file on my core/md's to point the dns at my local proxy of the packages.

It'd probably help quite a bit for development too. I'd be able to easily switch svn to my own repo and back when testing was done.

Thanks for your time,

Steve

P.S. or have I totally got confused about how the packaging works and the package files themselves don't get changed just the meta data, in which case a simple well tuned http proxy such as squid would work just as well?

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Local Lucid 10.04 Package Repo Cache
« Reply #1 on: December 06, 2011, 03:44:42 pm »
If you want to stay bleeding edge, just upgrade what you need upgraded, by re-installing the packages you want upgrade. For example, if you want to get the latest and greatest boot script packages, apt-get install pluto-boot-scripts will upgrade the boot scripts, IF they have changed.

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: Local Lucid 10.04 Package Repo Cache
« Reply #2 on: December 08, 2011, 12:47:44 pm »
Hi there.

You can set up a local repository, or you can set up a local mirror... There are several guides on how to set up a mirror but if your bandwidth is a problem, you just want a local repo.

Change location path and...
Code: [Select]
location="/path/to/unchanging/location/which/is/also/added/to/fstab"
mkdir /$location/debs
mv /var/cache/apt/archives/*.deb /$location/debs
mv /usr/pluto/deb-cache/*.deb /$location/debs
dpkg-scanpackages /$location/debs /dev/null | gzip -9c > Packages.gz
cp /etc/apt/sources.list /etc/apt/sources.list.repo.backup
echo "deb file:///$location/debs/ ./" > /etc/apt/sources.list
apt-get update

Here is the problem. In 1004, currently, when a new build happens, it builds everything. An upgrade will pull down EVERYTHING on deb.linuxmce.org, because all of the packages get a new higher number. So if you want to screw around with installs...
keep in mind that when you are doing an install, the appropriate repo's get added during the process... so you will either need to modify your install scripts, or do some sort of hack like putting a lock on the sources.list file.

I am not sure exactly what you are trying to do. I hope this helps.
« Last Edit: December 08, 2011, 03:52:00 pm by l3mce »
I never quit... I just ping out.