-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get dependencies for local deb file? #107
Comments
Hi,
On Wed, 2020-04-29 at 20:06 -0700, metal450 wrote:
Given a local .deb file, is it possible to use apt-offline to
generate a bundle of just the dependencies required to install that
.deb file?
i.e. rather than
apt-offline set vim.sig --install-packages vim
apt-offline get vim.sig --bundle vim.zip
Something to the effect of
app-offline set x.sig --install-dependencies ./x.deb
app-offline get x.sig --bundle dependanciesForX.zip
?
No. Currently apt-offline doesn't deal with .debs for this information.
It rather relies on apt.
But this could be a feature to have. Just that it'd be some scraping to
be done from the .deb's metadata. When using apt, we delegate that to
it instead and apt does a good job there.
```
Depends: python3:any, apt-offline (= 1.8.2-2), python3-pyqt5
Depends: libacl1 (>= 2.2.23), libblkid1 (>= 2.24), libc6 (>= 2.30), libkmod2 (>= 5~), libselinux1 (>= 2.1.9), adduser, dpkg (>= 1.19.3) | systemd-sysv, libudev1 (= 245.5-2), util-linux (>= 2.27.1)
Depends: kio, libc6 (>= 2.14), libkf5configcore5 (>= 4.97.0), libkf5coreaddons5 (>= 4.100.0), libkf5dbusaddons5 (>= 4.97.0), libkf5guiaddons5 (>= 4.96.0), libkf5i18n5 (>= 4.97.0), libkf5iconthemes5 (>= 4.96.0), libkf5kiocore5 (>= 5.62.0~), libkf5notifications5 (>= 4.96.0), libkf5textwidgets5 (>= 4.96.0), libkf5widgetsaddons5 (>= 4.96.0), libkf5windowsystem5 (>= 5.62.0), libqt5core5a (>= 5.12.2), libqt5dbus5 (>= 5.0.2), libqt5gui5 (>= 5.7.0) | libqt5gui5-gles (>= 5.7.0), libqt5widgets5 (>= 5.6.0~beta), libstdc++6 (>= 4.4.0), libx11-6
Depends: libc6 (>= 2.14), libcamel-1.2-62 (= 3.36.2-1), libcanberra-gtk3-0 (>= 0.25), libcanberra0 (>= 0.2), libdb5.3, libebackend-1.2-10 (= 3.36.2-1), libebook-1.2-20 (>= 3.17), libebook-contacts-1.2-3 (>= 3.25.90), libecal-2.0-1 (>= 3.33.4), libedata-book-1.2-26 (>= 3.33.91), libedata-cal-2.0-1 (>= 3.26.2), libedataserver-1.2-24 (>= 3.35.91), libedataserverui-1.2-2 (= 3.36.2-1), libgcr-base-3-1 (>= 3.8.0), libgcr-ui-3-1 (>= 3.8.0), libgdata22 (>= 0.17.10), libglib2.0-0 (>= 2.45.6), libgoa-1.0-0b (>= 3.11.90), libgtk-3-0 (>= 3.10), libgweather-3-16 (>= 3.10.0), libical3 (>= 3.0.7), libldap-2.4-2 (>= 2.4.7), libpango-1.0-0 (>= 1.14.0), libsecret-1-0 (>= 0.7), libsoup2.4-1 (>= 2.42), libxml2 (>= 2.9.0), evolution-data-server-common (>= 3.36.2-1), gnome-keyring
```
Dealing with a .deb metadata would mean:
* Listed above are some example of dependencies.
* A good scraper is needed to get the dependency package version along
with the logical reasoning.
* Handle dependency packages with an OR
* Handle meta packages
But this is a nice handy feature to have. I don't have bandwidth to
implement this soon but I would be delighted to see this feature.
I'll mark it as a wishlist for now and wishfully hope someone else to
beat me at it.
Thanks,
Ritesh
…--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
|
Cool...thanks for the quick reply, bummer it isn't there yet or on the horizon, but glad it sounds useful & may be someday! :) I'm afraid I don't have the capability personally either, but in the interim, I suppose I can just manually churn out a long command for the few .debs I have that are distributed outside of apt (i.e. --install-packages dep1 dep2 dep3 dep4, etc). Fingers crossed that this ends up getting tackled & eases the task of future reformats :) |
I was looking for this feature too. Is there a way to pass the dependency from the Depends line to the
I don't know how to specify the version ranges to the This would be similar to the apt-get satisfy command. I am wanting to do this because I have an apt package coming from a PPA which is not configured on the offline machine. The application is the only .deb that will come from the PPA, the dependencies will all come from repos known to the offline system. |
This approach is bound to break. The dependencies listed above are that of apt-offline ensures to not duplicate steps that are better dealt by
Why not ? It is an offline machine. So you could just enable that PPA repository and then let There's this fairly new library: https://github.com/memory/python-dpkg
This is not enough information to craft the complete url. |
There's also the option to manipulate
So what'll be needed is a cross-platform |
Given a local .deb file, is it possible to use apt-offline to generate a bundle of just the dependencies required to install that .deb file?
i.e. rather than
Something to the effect of
?
The text was updated successfully, but these errors were encountered: