kaksi
Posts: 92
Joined: Tue Mar 10, 2015 6:19 am

apt-get install from /root or LAN

Thu Nov 09, 2017 4:31 pm

Time again to reformat my SD card... I would like to download and install python-picamera, python-imaging and arp-scan and only then run apt-get update, keeping the downloaded files for the next time.

I have found something on http://archive.raspbian.org/raspbian/po ... /arp-scan/, I just do not know which file I should download and how to install it.

Why this way? Better an old version than none. The reliability of my internet connection is questionable (far, many obstacles, especially trees).

kaksi
Posts: 92
Joined: Tue Mar 10, 2015 6:19 am

Re: apt-get install from /root or LAN

Mon Dec 18, 2017 11:55 pm

Some visits here... So if it can help someone, here is what I have done:

Step 1:
Win32DiskImager

Step 2:
sudo apt-get install -d -y dos2unix
(-d means that the package is downloaded, but not installed. On second thought, you might probably install it and still find the package in /var...)

Step 3:
sudo dpkg -i /var/cache/apt/archives/dos2unix_6.0.4-1_armhf.deb

Step 4:
Tested that the package is compatible with my version of Jessie.

Step 5:
The same for python-imaging and arp-scan. The latter required to install libpcap0.8_1.6.2-2_armhf.deb.
For RPI2, I will have to do the same with python-picamera.

Step 6:
Copied all these deb to my windows machine into

Code: Select all

 Directory of B:\RPI\BOOT\1STRUN\DEB
2012-04-30  16:09           260,950 arp-scan_1.8.1-2_armhf.deb
2017-12-15  18:06            75,874 dos2unix_6.0.4-1_armhf.deb
2014-10-22  12:11           120,578 libpcap0.8_1.6.2-2_armhf.deb
2017-12-16  21:25             9,846 python-imaging_2.6.1-2+deb8u3_all.deb
:

Step 7:
Win32DiskImager (card is in d:)
xcopy b:\rpi\boot\* d: /s

(Notice that
B:\RPI\BOOT\1STRUN\DEB\arp will appear as
D:\1STRUN\DEB\arp which will appear on RPI as
/boot/1STRUN/DEB/arp
)

Step 8:
boot on RPI, run from /boot/1STRUN/:

Code: Select all

sudo dpkg -i ./DEB/libpcap0.8_1.6.2-2_armhf.deb
sudo dpkg -i ./DEB/arp-scan_1.8.1-2_armhf.deb
sudo dpkg -i ./DEB/dos2unix_6.0.4-1_armhf.deb
sudo dpkg -i ./DEB/python-imaging_2.6.1-2+deb8u3_all.deb
sudo apt-get update
This way, I have the latest version and in worst case and old, but a still working version and I save some internet traffic. Don't say it is nothing much to a guy who remembers 300 baud modems. ;)

Return to “General discussion”