Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #202383
| From | Sven Joachim <svenjoac@gmx.de> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Verifying dependencins of DEB file(s) |
| Date | 2018-11-14 09:30 +0100 |
| Message-ID | <wTYIF-30E-5@gated-at.bofh.it> (permalink) |
| References | <wTYfE-2Af-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2018-11-14 08:38 +0100, Tomáš Golembiovský wrote:
> I need to safely install a DEB file (or set of DEB files) without
> network connectivity and with tools normally present on small Debian
> installation. More precisely I would either like to install the package
> or leave the system in state before the attempt.
>
> However, it seems there is no way to roll-back installation done with
> dpkg in case of failure. Neither I found a way how to at least check
> dependencies. The --dry-run/--simulate option does not do that. In fact,
> I'm not sure what stages of the process it goes through (maybe just
> verifying package integrity).
Basically, --dry-run just simulates unpacking, and dpkg does not check
dependencies (other than Pre-Depends) during that phase. There have
been complaints[1] about that forever, so don't expect it to be fixed
anytime soon.
> Is what I want to do possible with dpkg or other tools that are
> normally in the base system?
Not with dpkg, but apt can install local .deb files and resolve
dependencies, although this is not documented[2].
$ apt -s install ./*.deb
should give you information whether the local packages are installable.
Note the leading "./" here, it tells apt to treat the arguments as local
files rather than package names.
Cheers,
Sven
1. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=55364
2. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874763
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Verifying dependencins of DEB file(s) Tomáš Golembiovský <tgolembi@redhat.com> - 2018-11-14 09:00 +0100
Re: Verifying dependencins of DEB file(s) Sven Joachim <svenjoac@gmx.de> - 2018-11-14 09:30 +0100
Re: Verifying dependencins of DEB file(s) Reco <recoverym4n@enotuniq.net> - 2018-11-14 09:30 +0100
Re: Verifying dependencins of DEB file(s) Tomaž Šolc <tomaz.solc@tablix.org> - 2018-11-14 09:40 +0100
RE: Verifying dependencins of DEB file(s) David Martens <David.Martens@wits.ac.za> - 2018-11-14 10:10 +0100
Re: Verifying dependencins of DEB file(s) Greg Wooledge <wooledg@eeg.ccf.org> - 2018-11-14 14:40 +0100
Re: Verifying dependencins of DEB file(s) Richard Owlett <rowlett@cloud85.net> - 2018-11-14 13:10 +0100
Re: Verifying dependencins of DEB file(s) Abdullah Ramazanoğlu <ar018@yahoo.com> - 2018-11-14 22:20 +0100
csiph-web