How to Install Software in Linux
Installing software in linux is not convenience than in windows. We can get the installation windows by double clicking *.exe files in windows, but this does not work in linux. Yes, we need to use some other traditional methods.
Here are some classical installation packages type in linux:
- .rpm - this is traditional format of linux installation packages, it is still be using in Redhat/CentOS
- .deb - installation package format in Debian Linux.
- .bin - Some commercial software, or a compiled destination file.
- .tar.gz, tar.Z, tar.gz2, .tgz - Supported by all Linux edition
Different format needs different installation command. Here, I give some examples for them. "softname" is just a sample.
1. Install .rpm packages
# rpm -ivh softname.i386.rpm
- -i install software
- -t test installation
- -p display installation progress
- -f ignore any problems
- -U upgrade installation
- -v check the packages is installed correctly.
2. Install deb packages
＃ dpkg -i softname.deb
3. Install bin format file
Files with .bin extension are executable directly, installation of this packages is easy. The only thing we should do is to give these files a execute permission, and copy them to a proper folder.
#chmod +x softname.bin #./softname.bin
4. Install tar packages
#tar -zxvf softname.tar.gz #cd softname #. /configure #make & make install
Delete temporary files: