On Sun, Oct 08, 2017 at 04:57:13PM -0400, bw wrote:
On Sun, 8 Oct 2017, Jimmy Johnson wrote:On 10/08/2017 07:07 AM, Emanuel Berg wrote: > Jimmy Johnson wrote: > > > You will need to download the depends too and > > then cd to the directory that holds the files > > and #dpkg -i (the package name) to install. > > OK. How should the depends be organized? I.e., > the dir structure? You should only need to install the one package and dpkg will pull in the depends and is why they need to be in the same directory. -- Jimmy Johnson Ubuntu 16.04 LTS - KDE Plasma 5.8.7 - AMD A8-7600 - EXT4 at sda5 Registered Linux User #380263does not work that way here? # ls apt-offline_1.7.2_all.deb python-magic_5.30-1+deb9u1_all.deb # dpkg -i apt-offline_1.7.2_all.deb Selecting previously unselected package apt-offline. (Reading database ... 39715 files and directories currently installed.) Preparing to unpack apt-offline_1.7.2_all.deb ... Unpacking apt-offline (1.7.2) ... dpkg: dependency problems prevent configuration of apt-offline: apt-offline depends on python-magic; however: Package python-magic is not installed. dpkg: error processing package apt-offline (--install): dependency problems - leaving unconfigured Processing triggers for man-db (2.7.6.1-2) ... Errors were encountered while processing: apt-offline
In the man page for dpkg, it reads: -i, --install package-file...This is common shorthand to read "The --install option (alternatively spelled '-i') must be followed by one *or more* arguments which will be assigned to the variable package-file". Emphasis mine. The ellipsis at the end states that the arguments can be repeated.
So, as has been stated dpkg won't pull in dependencies, but if you already have the dependencies to hand, you can tell dpkg to install them all and, as a bonus, it should work out which order to install them to satisfy dependecies.
dpkg -i /path/to/apt-offline_1.7.2_all.deb /path/to/python-magic_5.30-1+deb9u1_all.deb You can, of course, use any shell-shorthands that make sense such as: dpkg -i /path/to/{apt-offline,python-magic}*.deb dpkg -i /path/to/*.deb etc. -- For more information, please reread.
signature.asc
Description: PGP signature