Re: aptitude over-zealous on removals?
On 22 March 2011 13:06, Scott Ferguson wrote: > On 22/03/11 23:56, Jonathan Matthews wrote: >> It looks to me (http://packages.debian.org/squeeze/cwebx) that perhaps >> the only reason gcc is /on/ your machine is due to aptitude pulling it >> down when you installed cwebx. Hence it knows that, as it satisfied >> the dependency (well, recommendation) initially, it should be fine to >> remove it now. >> >> Just tell aptitude you explicitly /want/ gcc and you should be good to >> remove cwebx. I'd be interested to see if "aptitude install gcc ; >> aptitude remove cwebx" achieves this directly - do let the list know > > You can try using -R (ignore recommended) Hmmm, I'm not sure that'd work here. Surely the recommendation has already been applied long ago and the state that's being reacted to, and which is leading to the auto-removal of gcc, is solely the fact that there would exist no packages installed that depend (or recommend:) on gcc. I may be wrong :-) Jonathan -- Jonathan Matthews London, UK http://www.jpluscplusm.com/contact.html -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/AANLkTikrB80LagQihgNqm89yXZhif-ZJ12rOO=+2a...@mail.gmail.com
Re: aptitude over-zealous on removals?
On Tue, Mar 22, 2011 at 07:28 -0500, Charles Blair wrote: >I decided I wanted to remove the package cwebx, which is a > system for documenting C programs. When I put a minus sign > next to that package, I was told that aptitude wanted to then > remove a whole bunch of other stuff, including gcc. I definitely > did NOT want that to happen and exited from aptitude immediately. It has already been pointed out that you want to mark gcc as automatically installed. Just wanted to note that you should consider installing the "build-essential" package which depends on a couple of packages you might also want to keep. $ apt-cache depends build-essential build-essential |Depends: libc6-dev Depends: libc6-dev Depends: gcc Depends: g++ Depends: make Depends: dpkg-dev > >How do I get aptitude to cancel that request from future > sessions? That would be "aptitude keep-all", see the description in the manpage: Cancels all scheduled actions on all packages; any packages whose sticky state indicates an installation, removal, or upgrade will have this sticky state cleared. Have fun -- .''`. Wolodja Wentland : :' : `. `'` 4096R/CAF14EFC `- 081C B7CD FF04 2BA9 94EA 36B2 8B7F 7D30 CAF1 4EFC signature.asc Description: Digital signature
Re: aptitude over-zealous on removals?
On Tue, Mar 22, 2011 at 12:56:58PM +, Jonathan Matthews wrote: > Just tell aptitude you explicitly /want/ gcc and you should be good to > remove cwebx. I'd be interested to see if "aptitude install gcc ; > aptitude remove cwebx" achieves this directly - do let the list know In aptitude's graphical mode, navigate to the package in question (e.g., gcc: /^gcc$). Note the 'A' indicating that the package was automatically installed. Remove the 'A' (mark as manually installed) via keypress 'm'. Restore it via 'M'. (or vice versa) -- Jon Dowland -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110322141724.ga12...@deckard.alcopop.org
Re: aptitude over-zealous on removals?
On Tuesday 22 March 2011 13:28:49 Charles Blair wrote: >I decided I wanted to remove the package cwebx, which is a > system for documenting C programs. When I put a minus sign > next to that package, I was told that aptitude wanted to then > remove a whole bunch of other stuff, including gcc. I definitely > did NOT want that to happen and exited from aptitude immediately. > >How do I get aptitude to cancel that request from future > sessions? See man aptitude to mark gcc as manually installed. Thierry -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201103221446.17992.tchate...@free.fr
Re: aptitude over-zealous on removals?
On 22/03/11 23:56, Jonathan Matthews wrote: > On 22 March 2011 12:28, Charles Blair wrote: >> I decided I wanted to remove the package cwebx, which is a >> system for documenting C programs. When I put a minus sign >> next to that package, I was told that aptitude wanted to then >> remove a whole bunch of other stuff, including gcc. I definitely >> did NOT want that to happen and exited from aptitude immediately. >> >> How do I get aptitude to cancel that request from future >> sessions? > > It looks to me (http://packages.debian.org/squeeze/cwebx) that perhaps > the only reason gcc is /on/ your machine is due to aptitude pulling it > down when you installed cwebx. Hence it knows that, as it satisfied > the dependency (well, recommendation) initially, it should be fine to > remove it now. > > Just tell aptitude you explicitly /want/ gcc and you should be good to > remove cwebx. I'd be interested to see if "aptitude install gcc ; > aptitude remove cwebx" achieves this directly - do let the list know > ... > > Jonathan You can try using -R (ignore recommended) Cheers -- > A: Yes. > >Q: Are you sure? > >>A: Because it reverses the logical flow of conversation. > >>>Q: Why is top posting frowned upon? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d889ed2.8020...@gmail.com
Re: aptitude over-zealous on removals?
On 22 March 2011 12:28, Charles Blair wrote: > I decided I wanted to remove the package cwebx, which is a > system for documenting C programs. When I put a minus sign > next to that package, I was told that aptitude wanted to then > remove a whole bunch of other stuff, including gcc. I definitely > did NOT want that to happen and exited from aptitude immediately. > > How do I get aptitude to cancel that request from future > sessions? It looks to me (http://packages.debian.org/squeeze/cwebx) that perhaps the only reason gcc is /on/ your machine is due to aptitude pulling it down when you installed cwebx. Hence it knows that, as it satisfied the dependency (well, recommendation) initially, it should be fine to remove it now. Just tell aptitude you explicitly /want/ gcc and you should be good to remove cwebx. I'd be interested to see if "aptitude install gcc ; aptitude remove cwebx" achieves this directly - do let the list know ... Jonathan -- Jonathan Matthews London, UK http://www.jpluscplusm.com/contact.html -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktin3uz0-qrphcikzfgwgvue4u1aunpjrigvfz...@mail.gmail.com