106
Appendix E
Installing Applications Under Linux RedHat
Installing applications under Linux has been a major stumbling block for Linux newbies ,
even though the situation has improved with automatic installers (Like
yum,aptitude,autopackage etc) still applications installation under Linux is tricky.
Installing rpm packages on Redhat,Fedora Based Systems:
For Redhat based systems rpm is the standard format for packages,
it stands for RedHat
Package Manager. The files have ".rpm" extensions. The rpm format's major advantage is it
is easier to maintain applications installed using rpm than compiling from different sources.
Also various dependencies for applications are previously determined before installing the
applications which ensures error free running of application after installing the application.
To install an rpm package use command:
rpm -ivh PackageName
TO uninstall rpm package use :
rpm -e PackageName
PackageName is different from filename You used to install the package . This is actually the
name of software that is installed.
If you have some file on your system and you don’t recognize to which package it belongs
use the command : -
rpm -qf filename with path
this will return the name of package the file belongs to.
If you want to know what files and where the rpm installs for a specific package use the
following command : -
rpm -qpl packagename
If you want to upgrade an existing package on your system use :-
rpm -Uvh packagename
this command uninstalls the old version of the package and installs the new version of the
package. This commands works even when there are no existing version of application
installed hence this can be effectively used for Installing new packages.
rpm -qa | less
Views list of installed applications , one screen at a time.
rpm -qa
List all applications installed on the system
Komentáře k této Příručce