Fedora与Ubuntu安装g++的命令

分类: Unix/Linux

在Fedora中安装g++,使用命令:
$ yum install gcc-c++

而在Ubuntu下安装g++,直接使用命令:
$ apt-get install g++

日前安装了Fedora 10的KDE版本,感觉很好,这里分享上海交大的yum源:
# 文件名: sjtu.repo
# 把该文件置于/etc/yum.repos.d/ 目录下, 然后更新即可: yum makecache

[Fedora-ftp.sjtu.edu.cn]
name=Fedora 10 - i386
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/releases/10/Fedora/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[Everything-ftp.sjtu.edu.cn]
name=Everything 10 - i386
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/releases/10/Everything/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[updates-ftp.sjtu.edu.cn]
name=Fedora updates
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/updates/10/i386/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

posted @ 2012-03-23 08:58  Lunaa  阅读(209)  评论(0编辑  收藏  举报