Ubuntu Apt – How to Disable or Remove Apt(-get) in Ubuntu

aptaptitudedebianUbuntu

Is there anyway to disable/remove apt-get on a debian based server. I'd prefer to use aptitude, and don't want the other users to be installing packages with apt-get, to avoid package/database issues.

Best Answer

There are no issues with people using both tools at the same time. I frequently install things using apt-get or aptitude from the command line or use the curses interface to do security updates. Both apt-get and aptitude are front-ends to libapt-pkg, which deals with the dependency resolving and fetching of packages. libapt-pkg in turn uses dpkg to do the actual package installation. Both dpkg and libapt-pkg does locking in the right place, so that if someone is running aptitude, someone else can't install a package via apt-get until aptitude closes.

Since apt-get auto-dependency support there is no advantage of one tool over the other[0]

[0] except aptitude doesn't have super cow powers.