User Tools

Site Tools


wiki:install

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:install [2015/12/02 16:31]
asa
wiki:install [2016/08/02 14:47] (current)
Line 31: Line 31:
 # dnf remove package_name # dnf remove package_name
 </​code>​ </​code>​
 +
 +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:
 +
 +<code bash>
 +# dnf search compiler
 +</​code>​
 +
 +Other useful things you can do with dnf is upgrade installed packages, either upgrading individual packages:
 +<code bash>
 +# dnf upgrade package_name
 +</​code>​
 +Or, you can upgrade your whole Linux distribution:​
 +<code bash>
 +# dnf distro-sync
 +</​code>​
 +
 +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:
 +
 +<code bash>
 +$ ./configure
 +</​code>​
 +The next step is to compile the program using the ''​make''​ command:
 +<code bash>
 +$ make
 +</​code>​
 +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:
 +<code bash>
 +$ echo $PATH
 +</​code>​
 +Those directories are usually only write-accessible to the super-user. ​ So as root we type:
 +<code bash>
 +# make install
 +</​code>​
 +If you don't have root access, then you can just use the executable by typing the complete path to where it is located.
  
  
  
wiki/install.txt ยท Last modified: 2016/08/02 14:47 (external edit)