Installing software on Linux: introduction
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.
Installing software in Red Hat Enterprise Linux / CentOS / Fedora
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.
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.
Installing software with Yum (command line)
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 this page.
Install a software package:
yum install software
Delete a software package:
yum remove software
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:
yum search browser
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:
yum update software
Obtain information about a particular package:
yum info packagename
Is that not all the information you need? Take a look at our special page on Yum .
Graphical interface for Yum
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’.
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.
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:
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 repository ( “software library”) to download Yum .
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 dependencies 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:
rpm -ivh bestandsnaam.rpm
An installed softwarepackage can be removed with a single command:
rpm -e name-of-the-package-which-you-want-removal
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:
rpm -U packagename.rpm
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:
rpm -qa | grep software
The above command consists of two parts: the part rpm -qa the full list of installed software is displayed and the part grep software you ensure that only display the lines from that list which the term software occurs.
Installing software in Ubuntu and Linux Mint
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 dpkg , an acronym for Debian package . The following are two options for installing software on Ubuntu, Linux Mint, Debian or derivative thereof explained distribution.
Apt: A package tool on the command line
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 Xmms install is:
meradin:/home/tempest# apt-get install xmms
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:
apt-get install software
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:
apt-cache search search term
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:
apt-get remove package name
Manually install .deb files with dpkg
You can install downloaded deb’s by:
dpkg -i package.deb
Removal can with -r, to remove
dpkg -r package
You can also install software by self compile (or at Lower English: compiling). 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:
tar -jxvf <program versie.tar.bz2>
Do you use a source code ending in .tar.gz, you can execute the following command to unpack it:
tar -zxvf <program versie.tar.gz>
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 cd , what change directory state. Now go to the folder where the program is extracted with this command:
CD program name, version number
TIP : 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 the forum Alleslinux.com or contact us for professional support .
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 root should be using the command su (short for superuser or switch user ). :
<enter the password for the user root in>
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 exit 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 Exit 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 ” make uninstall ” types to remove a program.
Do you have questions about installing software? Then you can always visit the forum AllesLinux.com . Want to do install software, you can enable AllesLinux.com before. Check our support page for more information. Do you have less hurry? Then consider to enroll in a course Linux !