LinuxMCE Forums
May 24, 2013, 11:50:49 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Local Lucid 10.04 Package Repo Cache  (Read 389 times)
stedaniels
Regular Poster
**
Posts: 27


View Profile
« 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:
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?
Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2621


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« 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.
Logged

l3mce
NEEDS to work for LinuxMCE
***
Posts: 1031



View Profile
« 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:
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 » Logged

I never quit... I just ping out.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!