Monday, May 13, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 610  / 1 Year ago, fri, april 28, 2023, 10:02:16

Suppose I have a directory in which I have .deb packages for two programs with all there dependencies. I want to know if there is a apt or dpkg command, or another program to install one out of these two programs with all their dependencies. The dependencies should be installed automatically as I install the program.


More From » installation

 Answers
6

Try using apt-offline for this. I am using Ubuntu 12.04 (precise) for this!




  1. Download apt-offline package on your Networked PC from packages.ubuntu.com. wget http://ubuntu.hitsol.net/ubuntu//pool/universe/a/apt-offline/apt-offline_1.1.1build1_all.deb

  2. Copy apt-offline_1.1.1build1_all.deb to your NON-Networked Notebook
    using an USB-Stick

  3. Next install it there: sudo dpgk -i apt-offline_1.1.1build1_all.deb

  4. Now say you want to install a package called cuckoo on the NON-Networked Notebook execute this command on the NON-Networked Notebook:sudo apt-offline set cuckoo-offline.sig --install-packages cuckoo

  5. Copy the file cuckoo-offline.sig to the Networked PC and run this command:sudo apt-offline get cuckoo-offline.sig --no-checksum --bundle cuckoo-offline.zip This will fetch the package and all it's dependencies.

  6. Finally copy the zip file cuckoo-offline.zip using an USB-Stick to your NON-Networked Notebook and run this command there: sudo apt-offline install cuckoo-offline.zip



Of course you can do this for updates/upgrades and for other packages.



How to Update/Upgrade Your Ubuntu Without Internet Connection


[#31443] Sunday, April 30, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hirtieve

Total Points: 207
Total Questions: 104
Total Answers: 114

Location: Cook Islands
Member since Thu, May 21, 2020
4 Years ago
;