LinuxMCE Forums
May 23, 2013, 01:03:36 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 [2]
  Print  
Author Topic: Update / Upgrade with Limited Internet Access  (Read 1129 times)
bushtech
Veteran
***
Posts: 82


View Profile
« Reply #15 on: August 10, 2012, 04:52:17 pm »

Well, what about doing your sneaky upgrade thing on the md? Would that work to get the md in sync with the core? I see my md needs 231Mb of upgrades with a whole bunch of open-office files which I could probably quite safely ignore?
Logged

Core:Asus P5P43TD, Intel core 2 quad Q9550, Inno 3D Nvidia 240 GT (DVI+VGA+HDMI), 2Gb ram,10/100/1000 2nd NIC
MD: Zotax Zbox ID41
l3mce
NEEDS to work for LinuxMCE
***
Posts: 1031



View Profile
« Reply #16 on: August 10, 2012, 04:56:12 pm »

Well, what about doing your sneaky upgrade thing on the md? Would that work to get the md in sync with the core? I see my md needs 231Mb of upgrades with a whole bunch of open-office files which I could probably quite safely ignore?

Pinning the versions on your core would be the tricky way to do it. All that will be available to the MDs will be what is available on the core... so if the core is pinned then the mds will use the pinned versions by proxy because I only leave available the deb-cache repository, which everything is moved to.
Logged

I never quit... I just ping out.
l3mce
NEEDS to work for LinuxMCE
***
Posts: 1031



View Profile
« Reply #17 on: August 12, 2012, 06:26:31 pm »

So... to take this further... you first figure out what your big almost never changing package versions are (they should all be the same)
Code:
root@dcerouter:/usr/pluto/deb-cache# apt-cache policy lmce-skins-uita
lmce-skins-uita:
  Installed: 2.0.0.45.12080426303
  Candidate: 2.0.0.45.12081126341
  Version table:
     2.0.0.45.12081126341 0
        500 http://deb.linuxmce.org/ubuntu/ lucid/beta2 Packages
 *** 2.0.0.45.12080426303 0
        500 file:/usr/pluto/deb-cache/ ./ Packages

That is mine... so my installed version of all of these packages is 2.0.0.45.12080426303. Now I create a file /etc/apt/preferences    and populate it with this.
Code:
Package: lmce-skins-titanium
Pin: version 2.0.0.45.12080426303*
Pin-Priority: 1000

Package: lmce-skins-uita
Pin: version 2.0.0.45.12080426303*
Pin-Priority: 1000

Package: lmce-skins-slate
Pin: version 2.0.0.45.12080426303*
Pin-Priority: 1000

Package: pluto-skins-basic
Pin: version 2.0.0.45.12080426303*
Pin-Priority: 1000

Package: mce-diskless-tools
Pin: version 2.0.0.45.12080426303*
Pin-Priority: 1000

Package: pluto-avwizard-skin-basic
Pin: version 2.0.0.45.12080426303*
Pin-Priority: 1000

Package: pluto-sample-media
Pin: version 2.0.0.45.12080426303*
Pin-Priority: 1000

and do an apt-get update.
Now my upgrade goes from:
Code:
Need to get 531MB/531MB of archives.
to:
Code:
Need to get 130MB/130MB of archives.
Quite a difference. Now if you create this file on your core, and use the global upgrades script, it will update, and upgrade the core, then move these packages to /usr/pluto/deb-cache and changes your MDs to only fetch packages from the core... so as those are the only available packages to the MD, they, by proxy, keep those versions as well... and do not download ANYTHING on their own. See http://forum.linuxmce.org/index.php/topic,12634.0.html

This also creates a backup of your current MDs before doing the upgrade.

This knocks down a hybrid, with 3 MDs  average upgrade package downloads from 2.124 GB to 130 MB. Hope some find this useful.
Logged

I never quit... I just ping out.
bushtech
Veteran
***
Posts: 82


View Profile
« Reply #18 on: August 14, 2012, 03:24:13 pm »

Thanks for this L3. Certainly helps me
Logged

Core:Asus P5P43TD, Intel core 2 quad Q9550, Inno 3D Nvidia 240 GT (DVI+VGA+HDMI), 2Gb ram,10/100/1000 2nd NIC
MD: Zotax Zbox ID41
Pages: 1 [2]
  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!