You cannot "install" a .tar.gz file or .tar.bz2 file.
These .tar.gz files are g zip-compressed tarfiles , compressed archives like .zip files. .bz2 files. One can extract .tar.gz files using:
tar -xzf file.tar.gz
Similarly one can extract .tar.bz2 files with
tar -xjf file.tar.bz2
If you like to see the files being extracted during unpacking, add v:
tar -xzvf file.tar.gz
If you want to execute some file after extracting some .tar.gz files,
use the following command
find the executable file using ls -lrt command
and look for values of rwx, where r - read , w -write and x - execute,
there are 3 sets of rwx where one is for the owner of the file, generally the root, second set belongs to the group the user belongs to
and lastly the one for the user itself.
Well dont get into much details
simply write
./filename
to execute the file, after getting into the directory using cd (Change Directory) command
in case there are permission violations
use the following command
sudo ./filename
hit enter
In this case, asks for root password and then executes the command.
HOPE IT HELPS!
!please LEAVE COMMENTS !
These .tar.gz files are g zip-compressed tarfiles , compressed archives like .zip files. .bz2 files. One can extract .tar.gz files using:
tar -xzf file.tar.gz
Similarly one can extract .tar.bz2 files with
tar -xjf file.tar.bz2
If you like to see the files being extracted during unpacking, add v:
tar -xzvf file.tar.gz
If you want to execute some file after extracting some .tar.gz files,
use the following command
find the executable file using ls -lrt command
and look for values of rwx, where r - read , w -write and x - execute,
there are 3 sets of rwx where one is for the owner of the file, generally the root, second set belongs to the group the user belongs to
and lastly the one for the user itself.
Well dont get into much details
simply write
./filename
to execute the file, after getting into the directory using cd (Change Directory) command
in case there are permission violations
use the following command
sudo ./filename
hit enter
In this case, asks for root password and then executes the command.
HOPE IT HELPS!
!please LEAVE COMMENTS !
Thanks a lot, that was extremely usefull
ReplyDelete