Results 1 to 5 of 5

Thread: install packages without internet connection

  1. #1
    Join Date
    Aug 2013
    Beans
    59

    Question install packages without internet connection

    Hi all,


    my need is to install these packages on PC without internet connection:


    sudo apt-get install usb-modeswitch
    sudo apt-get install usb-modeswitch-data


    How do I download all necessary packages (with dependencies) using another computer before installing them on "disconnected" pc ?

    Where should I place downloaded packages on "disconnected" PC to install them?
    Last edited by Marchello_Lippi; April 16th, 2014 at 01:15 PM.

  2. #2
    Join Date
    Jan 2007
    Location
    3' from Hell
    Beans
    1,316

    Re: install packages without internet connection

    if you have them installed on one computer I think you can use apt on cd to create a cd/dvd of all the apt packages installed and then use it to install them.
    The only dumb question is the one not asked.

    In service to the Dream

  3. #3
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    4,987

    Re: install packages without internet connection

    I know that Keryx and Synaptic can be used for this.

    https://help.ubuntu.com/community/In...net_connection

  4. #4
    Join Date
    Nov 2011
    Beans
    2,336
    Distro
    Ubuntu

    Re: install packages without internet connection

    Code:
    sudo dpkg -i <package_name.deb>
    will install the package once you get it on the right machine.

    dpkg does not resolve dependencies, but it should complain and tell you what's mising. You can also check dependencies by searching for the package's page at packages.ubuntu.com.

    If both packages seem to be dependencies of each other, install both simultaneously with "dpkg -i *.deb". (Assuming they are the only deb's in that folder.)

    Gdebi, a handy little GUI installer, will chase down dependencies if they're in repos in your sources list. (Same as Software Center, Synaptic, apt-get... .) If it's installed, Gdebi should appear as an option when you right click on a deb in Files, and choose "Open With...". (It may then be necesary to look under "Other Application...".) Gdebi can also be set as the default installer by right clicking on a deb in Files, then Properties->Open With and choosing it, then setting the default.

  5. #5
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,952

    Re: install packages without internet connection

    Another way to chase down the complete dependency list is apt-get
    Code:
    sudo apt-get install --simulate usb-modeswitch
    Then you download those packages from http://packages.ubuntu.com
    Copy the packages into /var/cache/apt/archives/
    Then apt-get install should work normally:
    Code:
    sudo apt-get install usb-modeswitch

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •