wiki:install

# Differences

This shows you the differences between two versions of the page.

 wiki:install [2015/12/02 16:31]asa wiki:install [2016/08/02 14:47] (current) Both sides previous revision Previous revision 2015/12/02 19:30 asa 2015/12/02 16:31 asa 2015/12/02 16:25 asa 2015/11/30 17:01 asa created Next revision Previous revision 2015/12/02 19:30 asa 2015/12/02 16:31 asa 2015/12/02 16:25 asa 2015/11/30 17:01 asa created Line 31: Line 31: # dnf remove package_name # dnf remove package_name ​ + + All the packages are stored in online repositories;​ if you don't know the exact name of the package you want to install, you can search the repository using the ''​search''​ command. ​ For example, if you're looking for a compiler: + + + # dnf search compiler + ​ + + Other useful things you can do with dnf is upgrade installed packages, either upgrading individual packages: + + # dnf upgrade package_name + ​ + Or, you can upgrade your whole Linux distribution:​ + + # dnf distro-sync + ​ + + Not in every case you will find what you need in a repository. ​ In some cases you might need to //compile// the program before installing. ​ We'll cover that next.  As an example, we'll install the ''​aspell''​ program that is available [[ftp://​ftp.gnu.org/​gnu/​aspell/​ | here]]. + + Most software packages follow a similar layout of the code, and aspell is a good example of that. + The first step is to run the ''​configure''​ script: + + + $./configure + ​ + The next step is to compile the program using the ''​make''​ command: + +$ make + ​ + This creates the executable file of the program. ​ The final step is to put the program in a location where Linux will know to find it.  Programs are usually put in one of several standard directories that are specified in a variable called PATH. + To list those locations you can type: + + $echo$PATH + ​ + Those directories are usually only write-accessible to the super-user. ​ So as root we type: + + # make install + ​ + If you don't have root access, then you can just use the executable by typing the complete path to where it is located.