• Magyar nyelv
  • Gábor Kum

    Kum Gábor
    Specialist in use of Linux, free and open-source software at small and medium-sized enterprises, and in security of bank payment technologies. Also interested in today's privacy challenges, low-bitrate communications, and building a house as a hobby. Lives at the biggest lake of Central Europe, Lake Balaton.

  • Other projects

    HELLOTUX
    Promoting free software all over the world. Free software merchandise from Europe, in partnership with the leading Linux distributions and free software developers.
    www.hellotux.com
     

    Matek Oázis
    Hungary's number one maths e-learning site, with interactive videos, tests and games for children, students, adult learners, teachers and schools.
    www.matekoazis.hu

  • Magyar nyelv

KG.hu

Internetkapcsolat nélküli számítógép frissítése apt-offline-nal

22 October 2011, 3:02 pm (Central European Time)

Ha internetkapcsolat nélküli, Debian GNU/Linuxot futtató számítógépünk van, és frissíteni szeretnénk az online (APT) szoftverforrásokból, megtehetjük azt az apt-offline segítségével.

Az első teendő, hogy telepítsük fel az apt-offline csomagot. Felmerülhet a kérdés, hogy honnan, ha nincs internetkapcsoalt az adott gépen. Nos, vagy telepítőmédiáról, vagy másig gépen letöltve a packages.debian.org-ról.

Ezt követően futtassuk a kapcsolat nélküli gépen a következő parancsot rootként:
apt-offline set --update forrasok.sig
Ez a forrasok.sig fájlba menti el azokat a letöltendő csomaginformációs fájlokat, amikre szükségünk lesz ahhoz, hogy meg tudjuk állapítani, milyen frissítések érhetők el a gépünkhöz.

Ezeket a fájlokat mi is letölthetjük tetszőleges módon, vagy egy másik, internetkapcsolattal rendelkező gépen egy telepített apt-offline segítségével is, így (Fontos, hogy a forrasok.sig fájlt vinnünk kell magunkkal):
apt-offline get -d ./forrasok forrasok.sig
Ezzel a forrasok könyvtárba letöltődnek a szükséges csomaginformációs fájlok.

Ezeket az átmásolást követően az offline gépen az alábbi paranccsal tudjuk elmenteni:
apt-offline install ./forrasok/
Majd azonnal le is generálhatjuk azon fájlok listáját, amiket frissíteni tudunk.
apt-offline set --upgrade --upgrade-type dist-upgrade frissites.sig

Egy letöltéskezelővel vagy az alábbi paranccsal a kapcsolattal rendelkező gépen letöltjük a frissítendő csomagokat:
apt-offline get -d ./csomagok frissites.sig

Majd előkészítjük őket telepítésre az offline gépen:
apt-offline install ./csomagok/

Ha mindezt sikeresen elvégeztük, már nyugodtan kiadható az apt-get dist-upgrade parancs az internetkapcsolattal nem rendelkező gépen, a frissítés megtörténik

 

Be the first who leaves a comment!

Leave a comment!

Your name:

Your e-mail (kept private and will not be shown):

Comment:

Please type the word fresh here:

  • Gábor Kum

    Kum Gábor
    Specialist in use of Linux, free and open-source software at small and medium-sized enterprises, and in security of bank payment technologies. Also interested in today's privacy challenges, low-bitrate communications, and building a house as a hobby. Lives at the biggest lake of Central Europe, Lake Balaton.

  • Other projects

    HELLOTUX
    Promoting free software all over the world. Free software merchandise from Europe, in partnership with the leading Linux distributions and free software developers.
    www.hellotux.com
     

    Matek Oázis
    Hungary's number one maths e-learning site, with interactive videos, tests and games for children, students, adult learners, teachers and schools.
    www.matekoazis.hu