I
I
Igor2012-03-19 10:40:47
linux
Igor, 2012-03-19 10:40:47

Installing deb packages on server without internet?

There is a server (Ubuntu 11.04) on the local network that I connect to via SSH. You need to install tightvnc server on this server, update virtualbox and do a couple of other things. The server does not have an internet connection. How do I install all these packages, figure out the dependencies, download and install them in this situation?

Answer the question

In order to leave comments, you need to log in

7 answer(s)
V
Vitaly Peretyatko, 2012-03-19
@viperet

help.ubuntu.com/community/AptGet/Offline/PrintUris
On a server without Internet, install packages
apt-get --print-uris --yes install ExamplePackage > packageuri.htm
Get a file with links to everything you need to download. On a computer with int download -
wget --input-file packageuri.htm
We get the package and all downloaded dependencies, they must be transferred to the server and put
apt-get -o dir::cache::archives="/media/flash" install ExamplePackage
/media/flash is where you have downloaded packages

A
AnViar, 2012-03-19
@AnViar

And now the easiest way:
1. We raise the ssh tunnel on port 8080
2. We set the variable http_proxy=http://127.0.0.1:8080
3. We use aptitude \ apt-get regularly as much as we like
PS I use this method.

S
shadowalone, 2012-03-19
@shadowalone

To see dependencies:
apt-cache depends package_name

M
Maxim, 2012-03-19
@Maxim_ka

In order to update Virtualbox, you just need to go to the offsite, download the package for your architecture, upload it to the server and install it using dpkg -i. By the way, don't forget to say ExtensionPack for your version of Virtualbox. I think you will also have to do the same for tightvncserver - this package also does not require special dependencies.

I
Ivan Trofimov, 2012-03-19
@cbone

Maybe so:
sudo dpkg -i <имя_пакета>.deb

A
adminimus, 2012-03-19
@adminimus

Look towards apt-offline

Z
Zakharov Alexander, 2012-03-20
@AlexZaharow

Wouldn't mirroring the repository work? After that, you can install / update anything without any questions. (Just for a LAN it is very convenient).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question