Packages installed with apt-get build-dep should be set to auto-installed for easy removal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
APT |
Fix Released
|
Unknown
|
|||
apt (Ubuntu) |
Fix Released
|
Wishlist
|
Michael Vogt |
Bug Description
Binary package hint: apt
Reference Debian bug report #448743. I just submitted a patch for fixing this behaviour there.
When installing a package's build-dependancies, they are all marked manually-installed. This creates a situation where they must all be manually removed afterwards. (usually uninstalling libc6-dev takes care of a large portion)
orion@eris:~$ sudo apt-get build-dep bash
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
autoconf autotools-dev bison libncurses5-dev m4 tex-common texi2html texinfo texlive-base texlive-base-bin texlive-common texlive-doc-base texlive-latex-base
0 upgraded, 13 newly installed, 0 to remove and 16 not upgraded.
Need to get 14.9MB of archives.
orion@eris:~$ sudo apt-get autoremove --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
This patch sets the status of the installed build-dependancies to Auto, so that they are available for removal with apt-get autoremove.
orion@eris:~$ sudo apt-get build-dep bash
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
autoconf autotools-dev bison libncurses5-dev m4 tex-common texi2html texinfo texlive-base texlive-base-bin texlive-common texlive-doc-base texlive-latex-base
0 upgraded, 13 newly installed, 0 to remove and 16 not upgraded.
Need to get 14.9MB of archives.
orion@eris:~$ sudo apt-get autoremove --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
texlive-common texi2html bison libncurses5-dev texlive-base-bin texlive-latex-base autoconf texlive-base texlive-doc-base autotools-dev tex-common texinfo
The following packages will be REMOVED:
autoconf* autotools-dev* bison* libncurses5-dev* tex-common* texi2html* texinfo* texlive-base* texlive-base-bin* texlive-common* texlive-doc-base* texlive-latex-base*
0 upgraded, 0 newly installed, 12 to remove and 16 not upgraded.
This patch applies cleanly to apt currently in hardy (0.7.9ubuntu17), at least through apt currently in debian/unstable (0.7.14).
Related branches
Changed in apt: | |
status: | Unknown → New |
Changed in apt: | |
status: | New → Fix Released |
Hi,
Thanks for your bug report. As you also filed the bug in Debian
we will wait for their response on the bug.
Thanks,
James