<h2>Installing software on Linux: introduction</h2>
Installing software on Linux is very easy. Almost every Linux distribution uses a so-called package manager, similar in some way with an App Store. Unlike Windows and OS X, it is usually not necessary for Linux to scour the Internet looking for the proper installation file for your desired software. If you just tell your package manager which software you are looking for, everything will be installed automatically.
To make optimum use of the opportunities, it is important that you know which package manager software libraries ( "repositories") can be used. Every Linux distribution uses its own package management system and therefore has its own software libraries. The lack of unity in this area will work in this guide explain how to put the package manager of most common Linux distributions and what software repositories can be an addition to the repositories that are by default activated on your Linux-distribution.
The vast majority of all software can be found in repositories, but not all. Additionally there may be reasons to install software manually. Sometimes you can find a file that is not in a repository is still install with your package manager, with the advantage that you can exclude conflicts between software versions and always quickly retrieve a list of all installed software. It is usually from here .rpm or .deb files. Sometimes there is no ready file available that you can install, but only a source code or source code from a file. These are usually files ending in .tar.gz or .tar.bz2. These are zipped files containing the source code of the software. To work with the software, this code will be converted into bits and bytes so that you can run the software.
<h2>Installing software in Red Hat Enterprise Linux / CentOS / Fedora</h2>
Yum is one of the most popular package managers and is used in Fedora (t / m version 21), CentOS and Red Hat Enterprise Linux. It is an indispensable tool to manage your system. Not only for installing new software, but also in updating and maintaining your system and to prevent different versions of your operating system and softwarepakketten- conflict with each other. Yum namely maintains a database where all information is stored on your software. A precondition here is that you install any software with Yum or manually through .rpm files.
<p style="padding-left: 30px;">RPM (Red Hat Package Manager) is the format in which Linux files are available for Red Hat-based distributions like Fedora, CentOS and RHEL. It can be seen as a kind of precursor of Yum and uses the same database as Yum. Software that you install manually using an .rpm file is therefore to maintain with Yum.</p>
<h3>Installing software with Yum (command line)</h3>
Yum is a tool for the command line but works very simply. Some of the basic commands are enough to manage the vast majority of your software. Dozens of other commands are occasionally used. This page will explain the most common yum commands. For a more detailed manual on Yum please go to <a href="http://www.alleslinux.com/handleidingen/yum/">this page.</a>
Below are the most common commands for yum. The commands must be executed in a <a class="new" title="Terminal (page does not exist)" href="http://alleslinux.com/mediawiki-1.23.0/index.php?title=Terminal&action=edit&redlink=1">terminal</a> with <a title="Root" href="http://alleslinux.com/mediawiki-1.23.0/index.php/Root">root</a> privileges.
Install a software package:
<pre>yum install <i>software</i>
Delete a software package:
<pre>yum remove <i>software</i>
It is also possible to search for a particular software package. Example: You want a browser, but you do not know what browser, you can all browsers (or what to do with browsers) request with the command:
<pre>yum search <i>browser</i>
You can update all packages on your system at once (this may take some time depending on the speed of your computer and Internet connection):
Obtain information about available updates:
Do you want to update only one package to the latest version, you can do so with this command:
<pre>yum update <i>software</i>
Obtain information about a particular package:
<pre>yum info <i>packagename</i></pre>
Is that not all the information you need? Take a look at <a href="http://www.alleslinux.com/handleidingen/yum/">our special page on Yum</a> .
<h3>Graphical interface for Yum</h3>
Works with your Linux on the desktop and you would like a nice program which you can install and manage without all sorts of commands software? If your Fedora, CentOS or RHEL used a graphical desktop environment, you can from your menu select ‘Software’.
<p style="padding-left: 30px;">If this option is not there? Then you will need to install the software package gnome-software via the command line. To do so, open a terminal window, enter the command ‘su’ to obtain system privileges, and then enter the command "yum install gnome-software ‘. This command is executed successfully? You can then still run the software program from your menu.</p>
The "Software" program you can search the name of the required software, you can browse a category or you can browse the most popular applications. Below is a screenshot of the GUI for Yum:
<img class="alignnone wp-image-377 size-full" src="http://www.alleslinux.com/wp-content/uploads/2016/07/gnome-software-1.png" alt="Installing the software is easy with GUI for Yum" width="1020" height="683" />
In Fedora 22 and later versions will instead Yum be used DNF (dandified yum), an enhanced version of Yum. In the future, RHEL and CentOS will most likely change to DNF. The operation of this program is almost identical, but there are some differences under the hood.
Red Hat was one of the first players in the Linux world. In 1997, Red Hat launched a package management system, the Red Hat Package Manager (RPM). Until then your operating system consisted of separate software packages all of which must be maintained separately. There was no central database that tracked was what software was installed on your system. Because Linux is very modular, that is a very awkward situation. With RPM was resolved. Since then, many software is also released in .rpm format. When it comes to open source software, it is possible in many cases to which software easily from a <a href="http://www.alleslinux.com/handleidingen/repository/">repository</a> ( "software library") to download <a href="http://www.alleslinux.com/handleidingen/yum/">Yum</a> .
Do you have software found in .rpm? Then you can install it in two ways, namely via the command line or by simply clicking on your rpm file. The last way does not always work smoothly, but if it works, it requires no further explanation. If it does not work, you will still have to take your loophole to install the .rpm via the console.
To install RPMs manually, you can use the command ‘rpm’ work from the terminal. The command ‘rpm’ has many options, which we will explain here the most common. Before you can run the following commands, it is important that you know the location where you saved the RPM that you wish to install. Make sure you have root privilege and that you are standing in the folder where you saved the rpm and then the following commands:
Installing an rpm-file with a simple command. Often this works fine, but in many cases you will get the message that the software you want to install the proper functioning requires the presence of other software. You will then need to find the required software. These <em>dependencies</em> provide a lot of headaches. If possible, we therefore recommend to use yum or dnf, because these programs can solve the dependencies for you. To manually install an rpm, you can execute the following command:
<blockquote>rpm -ivh <em>bestandsnaam.rpm</em></blockquote>
An installed softwarepackage can be removed with a single command:
<blockquote>rpm -e <em>name-of-the-package-which-you-want-removal</em></blockquote>
A rpm can be updated if you have a newer rpm than the rpm that you have installed earlier. If this is the case, you can execute the following command in the terminal:
<blockquote>rpm -U packagename.rpm</blockquote>
Want to know the exact version of an installed software package, you can do so by searching a list of all installed software. You use the following combination of two commands:
<blockquote>rpm -qa | grep <em>software</em></blockquote>
The above command consists of two parts: the part <em>rpm -qa</em> the full list of installed software is displayed and the part <em>grep software</em> you ensure that only display the lines from that list which the term <em>software</em> occurs.
<h2>Installing software in Ubuntu and Linux Mint</h2>
Ubuntu, Linux Mint and a few other distributions originally based on Debian can not handle yum / dnf or .rpm files but use apt and .deb files. Installing software on these systems can gangbbare two ways: through Apt and manually with dpkg. Apt stands for A Package Tool, and was the first package tool for Linux that was able to manage software packages and resolve dependencies and conflicts between software packages and versions. Apt is still used as a package manager. Manually install .deb files can of course, this goes with the command <em>dpkg</em> , an acronym for <em>Debian package</em> . The following are two options for installing software on Ubuntu, Linux Mint, Debian or derivative thereof explained distribution.
<h3>Apt: A package tool on the command line</h3>
Although the command line sometimes afschikt, apt-get is designed for simplicity and makes managing your software collection indeed much easier. Apt standard uses several software libraries that are maintained by the maker of your Linux distribution. It is possible additional software libraries here, in other words repositories to add. Thus, you can install more software. See the repositories page for more information.
The apt command structure is very simple. An apt example of a command that allows you the music <em>Xmms</em> install is:
<blockquote><em>meradin:/home/tempest# apt-get install xmms</em></blockquote>
Where xmms to be replaced, of course, is by any other name of a software package that is present in the set repositories. The most frequently used commands are apt:
<blockquote>apt-get install software</blockquote>
The list of software that is available to be collected regularly in the set repositories to ensure that your old software installs or upgrades fog. Updating the list of available software can with:
All the system can update installed software with a single command. Important to know is that only the software installed previously with apt or a .deb file, can be upgraded with this command:
Are you looking for a specific software package that you know part of the name or term that describes the package, then you can search the name of the software package with the following command:
<blockquote>apt-cache search <em>search term</em></blockquote>
Did you install some software on your system? The .deb files apt download, then remain on your system. It is advisable to clean up these files regularly. You can with this command:
Do not you need a particular software package? Then you can remove it easily again:
<blockquote>apt-get remove <em>package name</em></blockquote>
<h3>Manually install .deb files with dpkg</h3>
You can install downloaded deb’s by:
<blockquote>dpkg -i package.deb</blockquote>
Removal can with -r, to remove
<blockquote>dpkg -r package</blockquote>
You can also install software by self <em>compile</em> (or at Lower English: <em>compiling). </em> Compiling software is sometimes necessary to open source software, namely, if the software can not be installed with yum, dnf or apt-get and if there is no suitable .rpm or .deb file. Compiling or compiling software is converting to computer programming language, ie zeros and ones and can only from the console.
When you open the console, it will need to be unzipped the downloaded software package as a first step.
Do you use a source code ending in .tar.bz2, you can this command to unpack it:
<blockquote>tar -jxvf <program versie.tar.bz2></blockquote>
Do you use a source code ending in .tar.gz, you can execute the following command to unpack it:
<blockquote>tar -zxvf <program versie.tar.gz></blockquote>
Now you get to see a lot of lines in a row, which means that the extraction is in progress. For each file that is one line will be shown unpacked, it looks like this:
1.2.3 Program /
Program-1.2.3 / README
program 1.2.3 / AUTHORS
program 1.2.3 / configure
This process is finished and the final rules contain no errors, you can open the newly created folder automatically with the command <em>cd</em> , what <em>change directory</em> state. Now go to the folder where the program is extracted with this command:
<blockquote>CD <em>program name, version number</em></blockquote>
<b>TIP</b> : You can type in most cases only the first letters of the folder you want to open and then press <Tab>, the rest of the name is automatically replenished.
Before you install, you must first know if you have not purchased other programs require it and if your system meets the system requirements. You can check this by typing the following into the console and press enter:
Now if you get error messages you should probably install another program that is needed for the program that you want to install. The options are too numerous to explain here. You can not get out, we’re glad to help on <a href="http://www.alleslinux.com/forum">the forum Alleslinux.com</a> or contact us for <a href="http://www.alleslinux.com/support/">professional support</a> .
Is the configure command completed successfully? Then you now know which system software and configuration is available to work with the program to compile. With the following command you can convert the code to computer programming language:
This process can take a long time. It does not hurt in the meantime to do something else. Once the command has been completed without errors, the so-called binaries, that is to say, executable files, created. Now the files should be moved to the right place on the hard drive to take them fully into your system. Make sure you have the appropriate rights to do so by first <em><a href="http://www.alleslinux.com/handleidingen/root-2/">root</a> </em> should be using the command <em>su</em> (short for <em>superuser or switch user</em> ). :
<enter the password for the user <em>root</em> in></blockquote>
Now you’re logged in as root, and you can run make install to complete the installation:
Again, it is important that you check for any error messages. Is not that the case? Then install your program. You’re logged in as root. By <em>exit</em> typing, followed by enter, you are logged out again as root. Do you want to continue working in the console? You can. For example you can try whether the newly installed program works by typing the program name and pressing enter. Will not you continue? Then type again <em>Exit</em> to close the console.
You can find a program that you’ve compiled also remove himself again, but only if you did not remove the source folder. Therefore it is wise to always move the sources into / usr / src. The sources are then in a central location. To remove a program, go to the source directory, which is the folder where you’ve done during the install "./confige ‘,’ make ‘and’ make install ‘. You must be in the source directory, the command " <b>make uninstall</b> " types to remove a program.
Do you have questions about installing software? Then you can always visit the forum <a href="http://www.alleslinux.com/forum">AllesLinux.com</a> . Want to do install software, you can enable AllesLinux.com before. Check our <a href="http://www.alleslinux.com/support/">support page</a> for more information. Do you have less hurry? Then consider to enroll in a <a href="http://www.alleslinux.com/linux-cursus/">course Linux</a> !