Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi
Please tell me hoe to install new softwares
in linux command prompt.Give some important tips about this problem.
Thanks......

Well, it depends what kind of file you've downloaded!!! It can come with rpm, gz, bz, or even tgz extension. For rpm, log in as root and run this at the command prompt,
rpm -ivh filename.rpm
But for both gz and bz, you need to uncompress it first and probably untar it...
tar xvzf filename.tar.gz
-or-
tar xvjf filename.tar.bzThen, change to the new directory that it just created and read either README or INSTALL for further instructions on how to compile and install it! But if you can tell me exactly the name of the file, then I can tell you how to do it.
taurus

Considering that you are using redhat, you'll probably want to use RPMs (Redhat Package Manager) as they are easy to install (as taurus said above). You may also want to have a look at apt-get for redhat which will download any extra packages required (aka dependencies) for a program to run. Learn more about it here: http://freshrpms.net/apt/

Dissa must be thinking how complicated it is to install something in a linux system...
For Redhat, redhat recommends that you use RPM (RedHat package manager). an rpm file contains the already compiled (binary) program which you can install using "rpm" as taurus said.
Binaries are usually not, but can also be in the form of a "gzipped tar file" (like zip) which you can simply extract and put the binaries wherever you want to.Because most software for linux systems is open source, it is also available as "source tarballs", ie. gzipped tar files (containing source files and scripts to build the source).
You can read the README or INSTALL to view the instructions on compiling the source and installing it. For this you need the development programs installed.

I think in redhat you should also be able to just double-click on an RPM file and it will come up with the package manager ready to install it (you will have to give root's password too). It used to do that when I ran mandrake which is pretty similar to redhat.
Some useful RPM commands:
(I haven't used RPMs for a while but I think the commands are correct)
To install a package
# rpm -ivh program.rpm
To upgrade a package
# rpm -Uvh program.rpm
To remove a package
# rpm -ev program.rpm
To list the files that were installed
# rpm -ql program
To list all programs installed via rpm
# rpm -qal
To get help
# man rpm

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |