tar和rpm两种文件的安装方法

对tgz文件:

tar zxvf x.tar.gz (展开)

tar yxvf x.tar.bz2 (展开)

./configure
make;make install(配置安装)

对rpm文件:

rpm -i x.src.rpm (安装到/usr/src/xxx下)

rpm -ba /usr/src/xxx/SPECS/x.spec(编译)

rpm -i /usr/src/xxx/RPMS/i386/x*.i[3-5]86.rpm (安装)

如果已下载了软件的deb包,那么,双击就行.

另外,在linux系统的软件中,有很多是rpm的,这种软件包在Ubuntu不能直接使用,若真的要使用,那要把rpm包转换成deb包

(1)装个将rpm包转换为deb包的小工具alien

apt-get install alien

(2)进入rpm所在的目录,输入命令

alien xxx.rpm(转换为deb包的rpm文件)

即可在本目录下生成一个xxx.deb
然后你双击就行了。

Popularity: 18% [?]

No tag for this post.
Related posts

cirtexhosting_ads.gif

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word