Solved

Offline Ubuntu Package Installation

Posted on 2013-01-03
5
828 Views
Last Modified: 2013-01-03
I have an Ubuntu server that has firewall ports open for inbound web traffic as well as internal network SSH, but not for outbound server updates/upgrades. Unfortunately, I am unable to get the ports opened I need because of tight security restrictions. I need to install a VM on the machine and obviously cannot just use the sudo apt-get install virtualbox-ose command being that it can't get access out. My question is, if I download the virtualbox package on a secondary machine and transfer via USB drive or SSH, where would I upload it on the offline server in order to have the apt-get command find it and properly install it? Do I need to create a local repository for that to work?
0
Comment
Question by:dale_abrams
5 Comments
 
LVL 1

Expert Comment

by:Shizzo
ID: 38741016
Normally with the linux package there will be a readme file that contains all the information in it to install the package on the machine. Apt-get will not work in this instance. http://www.virtualbox.org/manual/ch02.html#idp5512464
0
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 38741201
If you can get a package (deb) file you can issue the following command

sudo dpkg -i package.deb

Open in new window


You can get the deb for your version of Ubuntu from the following site
https://www.virtualbox.org/wiki/Linux_Downloads
0
 
LVL 76

Expert Comment

by:arnold
ID: 38741265
Look at ssh tunneling/proxy.

Does this server have access to NFS shares

mkdir -p /mnt/repos
mount -t NFS 192.168.0.2:/location/of/downloads /mnt/repos
You can either point and/or aptitude or dpkg and other means to do it.
0
 
LVL 1

Author Closing Comment

by:dale_abrams
ID: 38741602
Thanks. This was quick and easy and worked perfectly!
0
 
LVL 31

Expert Comment

by:farzanj
ID: 38741622
You are most welcome :)
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now