Saturday 1 April 2017

Ditch Ubuntu Software Centre

Most noobies to Linux love Ubuntu Software. It one of the best things of Ubuntu, a preinstalled GUI package manager.

The Other thing that most guys love is the Software Updater it is extremely fast and efficient when compared to its Windows Counter Part.

Experts

However experts should not be using Ubuntu Software. One of the biggest and main reason is the fact that it is buggy and it hangs even on modern hardware.
It is extremely slow compared to its terminal alternative. I have used GUI package managers on various Arch Distros, they are far more efficient then Ubuntu's Software Centre.

Secondly it has a tendency to acquire a lock and then never release. Software center was taught by canonical lock n key, however turns out it learned from its distant friend Windows lock n hang. 

Usually when it decides to play this game of lock n hang. You need to use ps -aux | grep apt. To find out the process and kill it with kill -9 pid. Finally you need to ensure that the database is not corrupt by use sudo dpkg --configure -a. Failure to do so can have disastrous consequences. So why not ditch it all together ?




Apt & Apt-get

Both of these are pretty much the same and can be used alternatively. However since 16.04, Ubuntu has shifted to using apt as the default option. I would recommend that you use the same. 

There are subtle differences in the two, and its hardly noticeable. One of them is a nice graphical progress bar in apt when compared to apt-get.

All You need To Know

  • sudo apt update: To update the database of packages
  • sudo apt upgrade: This actually upgrades packages to newer versions
  • sudo apt autoremove: This removes unnecessary installed packages. These are dependencies no longer removed or older linux Kernels etc
  • sudo apt clean & sudo apt autoclean: Both clean the local repository of retrieved packages however autoclean removes a subset of what clean would remove and I would recommend you use the same unless you are really low on space. Autoremove only removes packages which cannot be downloaded ie they have newer version in the repos.  
  • sudo apt remove package-name: This removes the package ie uninstalls it
  • sudo apt purge package-name: Removes package along with all the configuration files
  • sudo apt install package-name: Installs the selected package along with necessary dependencies.

No comments:

Post a Comment