Debian Based Systems (Ubuntu, Linux Mint...etc)
I have already posted an article on RUN WINDOWS SOFTWARE/APPS ON LINUX OPERATING SYSTEM
Many windows users think that installation in Linux is similar to windows, i.e., search the file over the internet, download it, get the setup file and execute it. This will install the application in their system. This is not entirely true in Linux, though apps can be installed in that way too. In linux, we store all the "setup" files of apps often in a single website, which is called repository. Here you can access/install/uninstall/know info of the apps using a program called package manager, which is apt-get in ubuntu, yum in fedora etc. You issue simple commands that automatically download the files of apps from the repository and install it in your machine.
For those who fear the command line, Ubuntu has a wonderful GUI of their package manager in the form of software center. Here you can search the applications you need, read their reviews, rate it, download/install/uninstall it and do even more. The software center stores all the info of the setup files, (which is known as packages in Linux world), in your computer, known as "cache". As software is updated everyday, the cache of your PC may get outdated and you many need to refresh the cache to access new and updated software. Often it may happen that the software you need is not available in the official repositories of your distribution. at that time, you may need to add it in form of "ppa" to make it availiable to install. You can search more about this things in the internet to learn more.
A software may depend on other files and libraries for its proper execution, which is known as its dependencies. You may often see that other from the application you request, it may also download some extra files as depencies of your program.
Updating Software Cache
As said earlier, your package manager stores all the information about software in repositories locally as cache. It may so happen that the cache gets outdated with time. So the first thing you need to do before installing software is updating the cache. You can issue a single command for this
sudo apt-get update
You dont need to update the cache before instalation of every software, but its highly recommended to update it on a regular basis, as you will not get new updates if you dont update your software cache.
Searching For Packages
To search for software, issue this command
apt-cache search [search term 1] [search term 2] … [search term n]
Getting More Information about a package
This command shows the description of package
To install a package/software/application, issue
sudo apt-get install [package name 1] [package name 2] … [package name n]
If you want to get rid of a program, you can uninstall its associated packages.
sudo apt-get remove [package name 1] [package name 2] … [package name n]
If you want to get rid of the configuration files and associated directories (usually in the user’s home directory), you’ll want to add the purge option:
sudo apt-get remove –purge [package name 1] [package name 2] … [package name n]
Most of the time, you can just choose the core package and the associated ones will be removed as well. If it doesn’t, you can use the following command:
sudo apt-get autoremove
Make sure you update the cache by following the method above. Then issue this single command to update your whole system.
sudo apt-get upgrade
If you want only few packages to update rather than the whole system
sudo apt-get upgrade [package name 1] [package name 2] … [package name n]
Adding More Repositories
Often it may happen that the software you need is not availiable in the official repositories of your distro. In that circumstances, to install software, you may need to add a PPA. PPA in the Ubuntu (and most derivatives) context is "Personal package archive". These 'archives' are Ubuntu's way to add extra packages (or packages that are in the main Ubuntu repos but are newer versions) to the system. These packages are user(or team) maintained and generally are safe to be used... But of course they can give you some problems like bugs etc sometimes...
You add them using your package manager source config like this:
sudo add-apt-repository ppa:name/ppa
Some of the most prominent PPA's:
propriety graphic drivers: https://launchpad.net/~ubuntu-x-swat/+archive/x-updates
Generally... When you need some package that is not available in the Ubuntu sources... (or it is an old version there)... you should go to the package home page... then find the downloads... and there you look for Ubuntu supported downloads... If such exist... usually the have a description of their own PPA.. so you add the PPA described there... that is secure enough as a whole...
Resolving Unmet Dependencies
If you get errors like "The following packages have unmet dependencies", you can install all dependencies at once by issuing this command
sudo apt-get -f install
Thank you for reading...:)Stay Tuned with darksite to learn more on Linux..:)