sudo apt-get remove unity-lens-shopping --purge sudo apt-get remove unity-lens-shopping --purgesudo flay the-marketroid-who-came-up-with-that -v -v -painful -transcript -violate-human-rights
right now.
sudo dpkg -P unity-lens-shopping root@fw:~# dpkg -P libssl1.0.0
dpkg: dependency problems prevent removal of libssl1.0.0:amd64:
python-openssl depends on libssl1.0.0 (>= 1.0.0).
openssh-client depends on libssl1.0.0 (>= 1.0.1).
ntp depends on libssl1.0.0 (>= 1.0.0).
...SNIP...
bind9-host depends on libssl1.0.0 (>= 1.0.0).
tor depends on libssl1.0.0 (>= 1.0.1).
tcpdump depends on libssl1.0.0 (>= 1.0.0).
libruby1.8 depends on libssl1.0.0 (>= 1.0.0).
postfix depends on libssl1.
dpkg: error processing libssl1.0.0:amd64 (--purge):
dependency problems - not removing
Errors were encountered while processing:
libssl1.0.0:amd64
or root@fw:~# dpkg -P coreutils
dpkg: error processing coreutils (--purge):
This is an essential package - it should not be removed.
Errors were encountered while processing:
coreutils
Take a look at --force-help for more info on forcing things.I demonstrated that dpkg will not remove packages with dependencies. Furthermore some packages are so crucial (ie: essential) that dpkg does not even bother checking dependencies before erroring out.
How does that not change your point?
> the point of apt-get being better than dpkg for this still stands.
When removing packages it just doesn't matter. When installing, it also doesn't really matter. dpkg can't fetch packages from the repositories, but it will mark them and a following apt-get install -f will fetch them flawlessly.
A few years ago you had to be careful when mixing apt-get and aptitude, and thus probably also when mixing aptitude with dpkg, as far as i know that is not the case anymore. Even a following autoremove should work.
You haven't mentioned one single valid cause why it should be wrong to use dpkg, and I'm pretty confident that you won't, because afaik it isn't. And i'm pretty sure.
(Just jumping in because dfc mentioning he really wants to know. Just think about apt-get as a frontend for dpkg which calls dpkg to install and remove .debs, but also fetches them from the internet and notices when they are no longer needed because they were installed as a dependency for a now removed package.)
I'm not being snarky, I'm generally interested in learning more about Debian and it seems that you might be able to improve my knowledge.
The only time I've been forced to use dpkg in the past ten years was when the system was seriously messed up e.g. in the middle of a failed upgrade.
Did you read anything I wrote? I specifically mentioned that dpkg would not remove an essential package...twice:
In my initial reply I demonstrated that dpkg would not remove an essential package:
root@fw:~# dpkg -P coreutils
dpkg: error processing coreutils (--purge):
This is an essential package - it should not be removed.
Errors were encountered while processing:
coreutils
And in my second reply I simply restated what my example had demonstrated:"Furthermore some packages are so crucial (ie: essential) that dpkg does not even bother checking dependencies before erroring out."
> "The only time I've been forced to use dpkg in the past ten years was when the system was seriously messed up e.g. in the middle of a failed upgrade."
Just because the only time you had to use dpkg was when your system was messed up does not mean that dpkg is likely to mess up your system. Its like saying that the emergency room causes life threatening trauma because the only time I was seriously injured I had to go to the emergency room.
Does anyone know if there a name for this kind of fallacious reasoning? It seems like an amalgamation of "post hoc ergo propter hoc" and "cum hoc ergo propter hoc."
The OP is, I believe, trying to argue that apt-get is in general less likely to blow your foot off, therefore you should default to using apt-get in general since it makes you less likely to lose a foot in the long run.
If you prefer to memorise specific safe cases for brevity of typing, that's absolutely fine. The OP, I think, prefers not to do so, and the same goes for me.
Assuming I'm correct in describing the OP's argument, hopefully you can now both go "oh, okay, that's what he meant" and move on :)
alias canhaz='sudo apt-get install'
alias donotwant='sudo apt-get remove'
sudo apt-get install xubuntu-desktop
The typical Ubuntu user probably won't miss much on Xubuntu. When they find that mrxvt doesn't let them use Ctrl-C/V to copy and paste, they'll be mystified. Ditto for Openbox's wu wei panel management.
I use tint2 as a "panel" of sorts in Openbox, and modify menu.xml for anything else I need. I like it well enough. Also, modifying rc.xml allows one to set hotkeys.