[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Offline Paketmanagement für Debian Systeme mit apt



Hallo,

vielleicht stand jemand von euch auch schon mal vor der Aufgabe Debian-Pakete 
und updates samt Abhängigkeiten für unterschiedliche, auch nicht (DSL) 
vernetzte debian/*ubuntu Systeme, bereitzuhalten oder von woanders 
runterzuladen.

Z.B. für Rechner in Fachsammlungen zu hause etc...

Prima dafür geignet fand ich den Ansatz für den Download die regulären 
apt-tools mit Status, Paketcache und Einstellungen des Zielrechners auf einem 
transportablen Medium zu verwenden. Die Arbeit erledigt dan apt... 
http://debiananwenderhandbuch.de/apt-offline.html

Geht prima, könnte jemand, der mit bash bewanderter ist, auch schnell für 
allgemeine komfortable Nutzung automatisieren.

Hab da ein paar pseudocode Notizen gemacht, wer interesse hat.
(apt-medium.gz im Anhang)


Die existierenden apt-tools, cli und gui, können dann zum "bespielen" eines 
(transportablen) mediums, und später zur "installation" von diesem verwendet 
werden. Einfach indem eine entsprechend angepasste Konfigurationsdatei 
"vorgeschaltet" wird.

Gruß,
Christian


  "apt-medium"   could manage an installation medium,
                 especially writeable ones,
                 for multiple, even disconnected
                 and remote, machines.

1) You plug in your apt-medium.  (i.e. an extracted directory tree on an
   USB-disk etc.)

2) If you want to install something, do an "apt-medium install <package>".
   If the necessary packages are already on the apt-medium they will
   get installed right away.

3) If some Packages are missing on the apt-medium you are told that you need
   to execute "apt-medium download". It is possible to do this at another
   machine. Even on a machine running some other operating system.
  (with "apt-medium.bat download")


After the downloading you just run "apt-medium install" again, and it
 installs what has been requested for that machine.

And if you want to use a graphical apt-frontend with your apt-medium, for
example aptitude or synaptic, you do so with "apt-medium --apt-tool=aptitude"

Attachment: apt-medium.tar.gz
Description: application/tgz


Reply to: