-
Notifications
You must be signed in to change notification settings - Fork 31
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
Is dpkg-query -W sufficient for the manifest? #61
Comments
@setharnold No, it's not. See #56 and #53 |
@setharnold @mssalvatore as a work-around until 3.0, do you see any issues with using the following to remove previously uninstalled items from the manifest? $ grep -v -f <(dpkg --get-selections | awk '$2 ~ /deinstall/ {print $1}') <(dpkg-query -W) |
If it helps, the cloud image manifests published to http://cloud-images.ubuntu.com/releases/focal/release/ are generated using
See https://git.launchpad.net/ubuntu/+source/livecd-rootfs/tree/live-build/functions?h=ubuntu/focal-updates#n46 for more details. |
@philroche that still turns up previously installed packages for me -- for example, $ dpkg -l | grep '^rc' | tail -1 Wed 16 Dec 2020 09:28:15 PM UTC
rc zfs-zed 0.7.12-1ubuntu5 amd64 OpenZFS Event Daemon but it does show up in standard queries: $ dpkg-query --show --admindir="/var/lib/dpkg" | grep 'zfs-zed'
zfs-zed 0.7.12-1ubuntu5 |
@techalchemy Interesting. I'll check to see if any cloud-images are affected by this. I'll also update https://github.com/CanonicalLtd/ubuntu-package-manifest too
|
I have confirmed that Ubuntu cloud image manifests are not affected as any package removal that I can find uses I have tested this locally now too. |
I generated a manifest on a Bionic system with
dpkg-query -W
, copied it to a focal machine, and rancvescan -p all -m manifest-post.txt
. The output is surprising:gnupg-agent
isn't actually installed according todpkg -l
, but it is included indpkg-query -W
output all the same:Thanks
The text was updated successfully, but these errors were encountered: