Monday, 21 March 2016

Install Packages (tar.gz tar.bz2 .deb .run .sh and .bin)

1) tar.gz Package Installation Method :
Step 1 : These packages need some dependency packages while installing on the machine based on its build it. So, First install the necessary packages by
$ sudo apt-get install build-essential
Step 2 : Now, extract the tar.gz file by
$ sudo tar zxvf PackageName.tar.gz
Step 3 : Then move to extracted directory and run the following commands to install the package by
$ cd PackageName
$ sudo ./configure
$ sudo make
$ sudo make install
That’s all. you are done !
2) tar.bz2 Package Installation Method :
Step 1 : These packages need some dependency packages while installing on the machine based on its build it. So, First install the necessary packages by
$ sudo apt-get install build-essential
Step 2 : Now, extract the tar.bz2 file by
$ sudo tar jxvf PackageName.tar.bz2
Step 3 : Then move to extracted directory and run the following commands to install the package by
 $ cd PackageName
 $ sudo ./configure
 $ sudo make
 $ sudo make install
That’s all. you are done !
3) .deb Package Installation Method :
Step 1 : Simply run this command to install the package. Because, it is a common format for ubuntu based distros.
$ sudo dpkg -i PackageName.deb
To uninstall the package, run the following command to do it.
$ sudo dpkg -r PackageName.deb
or you can use Software center on Ubuntu to do it.
4) .run .sh and .bin Packages Installation Method :
Step 1 : First change the packages to execution mode. So, simply change File access mode using chmod command by
For .run Pacakges ==>
$ chmod +x PackageName.run
For .sh packages ==>
$ chmod +x PackageName.sh
For .bin packages ==>
$ chmod +x PackageName.bin
Step 2 : After changing to execution mode, simply run it by
For .run Pacakges ==>
$ sudo ./PackageName.run
For .sh packages ==>
$ sudo ./PackageName.sh
For .bin packages ==>
$ sudo ./PackageName.bin
That’s all. Enjoy !!!

4 comments: