You cannot "install" a .tar.gz file or .tar.bz2 file. .tar.gz files are gzip-compressed tarballs, compressed archives like .zip files. .bz2 files are compressed with bzip2. You can extract .tar.gz files using:
tar xzf file.tar.gz
Similarly you can extract .tar.bz2 files with
tar xjf file.tar.bz2
If you would like to see the files being extracted during unpacking, add v:
tar xzvf file.tar.gz
Even if you have no Internet connection, you can still use Ubuntu's package management system, just download the .deb files from http://packages.ubuntu.com/. Do not forget to download dependencies too.
For an easier way to install packages offline, see the question How can I install software offline?.
解压.tar.gz与.tar.bz2文件
本文介绍如何使用tar命令解压.tar.gz和.tar.bz2格式的压缩文件,并提供了解压时显示详细信息的方法。同时,文章还提到了在没有网络连接的情况下如何利用Ubuntu的包管理系统进行软件安装。

被折叠的 条评论
为什么被折叠?



