LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-14-2012, 06:40 AM   #1
hamidi2
Member
 
Registered: Aug 2012
Posts: 61

Rep: Reputation: Disabled
910824 - how to install snmp offline?


hi
in a clean ubuntu 10.10 system which is not connected to the internet i need to run the following command:

snmpget -v1 -c public 10.25.25.34 1.3.6.1.4.1.2254.2.4.1.7.0

now i get the following error:

The program 'snmpget' is currently not installed. You can install it by typing:
apt-get install snmp

since the system is not connected to the internet i can't use apt-get. what can i do instead?
thx
 
Old 11-14-2012, 05:10 PM   #2
SteveThePirate87
Member
 
Registered: Jul 2012
Location: Glasgow, UK
Distribution: Mint 16 and Open Suse 13.1
Posts: 64

Rep: Reputation: Disabled
Hi,

Download and transfer it to the computer then install from source, here is the link;

http://net-snmp.sourceforge.net/download.html

Steve

---------- Post added 14-11-12 at 11:10 PM ----------

Hi,

Download and transfer it to the computer then install from source, here is the link;

http://net-snmp.sourceforge.net/download.html

Steve
 
Old 11-15-2012, 05:22 AM   #3
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,209
Blog Entries: 4

Rep: Reputation: 765Reputation: 765Reputation: 765Reputation: 765Reputation: 765Reputation: 765Reputation: 765
on the host (ubuntu?) that does have internet
Code:
sudo apt-get clean
sudo apt-get -d snmp
sudo cp /var/cache/apt/archives/* /path/to/media
then copy contents of /path/to/media to the system that requires snmp installed, once copied to the hard drive, then
Code:
sudo dpkg -i /path/to/local/filename.deb
Doesn't download dependencies, if any are needed.
 
Old 11-15-2012, 05:36 AM   #4
hamidi2
Member
 
Registered: Aug 2012
Posts: 61

Original Poster
Rep: Reputation: Disabled
see whether i'm right?:
by running the command:
sudo apt-get clean
i cause all cached package in /var/cache/apt/archives be removed and the folder gets empty.
by running the command:
sudo apt-get -d snmp
i cause all packages required for snmp get downloaded to /var/cache/apt/archives.
by running the command:
sudo dpkg -i
one after another i cause the whole snmp gets installed. right?
if so, there're some disadvantages:
1. the source system loses all cached packages. i may prepare a backup before doing this though.
2. i've already these packages, because i've a system in which snmp is installed. how can i know that which ones required not to have to download them again? can apt-get list them instead of downloading them again?
3. in the last step i don't know the order of packages which have to be installed. maybe it's better to copy them to /var/cache/apt/archives then run apt-get install snmp, isn't it?
thx
 
Old 11-15-2012, 05:39 AM   #5
hamidi2
Member
 
Registered: Aug 2012
Posts: 61

Original Poster
Rep: Reputation: Disabled
Steve...: thanks for your suggestion, but i prefer not to compile sources. it may generate errors and compile switches may be different from one the publisher has set. i'm also not an expert in linux. it seems that binaries in the link u mentioned is compiled for Windows and i don't know what to do with sources which make an executable file for Windows is Linux.
 
Old 11-15-2012, 07:27 AM   #6
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,209
Blog Entries: 4

Rep: Reputation: 765Reputation: 765Reputation: 765Reputation: 765Reputation: 765Reputation: 765Reputation: 765
Quote:
Originally Posted by hamidi2 View Post
see whether i'm right?:
by running the command:
sudo apt-get clean
i cause all cached package in /var/cache/apt/archives be removed and the folder gets empty.
by running the command:
sudo apt-get -d snmp
i cause all packages required for snmp get downloaded to /var/cache/apt/archives.
by running the command:
sudo dpkg -i
one after another i cause the whole snmp gets installed. right?
if so, there're some disadvantages:
1. the source system loses all cached packages. i may prepare a backup before doing this though....
Always make backups.
I don't know exactly what dpkg -i will do for Dependencies...sorry.

Net-Snmp on Ubuntu says to "sudo apt-get install libperl-dev", so that should be
Code:
sudo apt-get -d net-snmp libperl-dev
and then check /var/cache/apt/archives/

Copy those .debs to the off-line host and install in this order using dpkg -i ...
libperl-dev*.deb
net-snmp*.deb

I believe the package I installed on about a dozen Ubuntu servers is net-snmp

HTH.

JJ
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting all RPMs needed by 'yum install pkg1 pkg2 pkg3' to install on offline system veeruk101 Linux - Newbie 10 06-14-2011 01:51 AM
how to install mplayer offline pdwivedi Linux - Newbie 3 04-19-2009 01:26 PM
how to install wine offline? siridra Linux - General 3 12-27-2008 06:57 PM
Netscape offline install marlaina1 Linux - Software 1 08-04-2004 09:37 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM


All times are GMT -5. The time now is 04:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration