剛安裝好CentOS 7,安裝gtk3、codeblocks、chrome、添加常用源、代替迅雷的qbittorrent
1. 安裝gtk3
正想學習gtk,隨便裝上
安裝gtk3.0
yum -y install gtk3-devel gtk3-devel-docs
2. 安裝codeblocks
用貫了codeblocks,先安裝codeblocks開發環境
在Fedora好像可以直接yum install codeblocks安裝,在centos要先裝wxGTK,因為codeblocks依賴於它
安裝wxGTK
yum -y install wxGTK
安裝codeblock (這樣安裝的好像是13.12版本)
yum -y install codeblocks
3. 添加常用源
CentOS為了穩定,沒有多少軟件可裝,所以安裝上常用的第三方源,擴展一下軟件安裝源
用 yum repolist 查看
安裝epel-release源
yum -y install epel-release
很多源或軟件直接用yum install XXX是安裝不了的,在https://centos.pkgs.org/裏有很多rpm,下載到本地後用rpm -ivh XXX安裝就好,很多軟件或插件如果不安裝第三方源,直接用yum install安裝不了,要添加一些第三方源後才有得安裝
安裝rpmforge源
在https://centos.pkgs.org/裏查找到rpmforge-release,下載到本地,安裝,在下載頁面有怎樣安裝的方法(Install Howto)
**********************************************查找之後像這樣的*********************************************
Search on Name and Provides
Repoforge (RPMforge) x86_64- rpmforge-release-0.5.3-1.el7.rf.x86_64.rpmRPMforge release file and RPM repository configuration
Description
rpmforge-release - RPMforge release file and RPM repository configuration
Distribution: CentOS 7 Repository: Repoforge (RPMforge) x86_64 Package name: rpmforge-release Package version: 0.5.3 Package release: 1.el7.rf Package architecture: x86_64 Package type: rpm Installed size: 13.19 KB Download size: 12.23 KB Official Mirror: ftp.tu-chemnitz.de RPMforge.net release file. This package contains apt, yum and smart configuration for the RPMforge RPM Repository, as well as the public GPG keys used to sign them.Alternatives
- rpmforge-release All Repositories
Requires
- config(rpmforge-release) = 0.5.3-1.el7.rf
Provides
- config(rpmforge-release) = 0.5.3-1.el7.rf
- rpmforge-release = 0.5.3-1.el7.rf
- rpmforge-release(x86-64) = 0.5.3-1.el7.rf
Required By
Download
Binary package: rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm Source package: rpmforge-release-0.5.3-1.el7.rf.src.rpmInstall Howto
- Download the latest rpmforge-release rpm from
http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el7/en/x86_64/rpmforge/RPMS/
- Install rpmforge-release rpm:
# rpm -Uvh rpmforge-release*rpm
- Install rpmforge-release rpm package:
# yum install rpmforge-release
*******************************************************************************************************************
sudo rpm -Uvh rpmforge-release*rpm # *號表示不知道後面接著的是什麽,下載的每個包的名字都不一樣 # -U -- 升級 sudo yum -y install rpmforge-relesase
安裝nux-dextop-release源,有一些媒體的解碼器需要用到這個源,如mpeg-1 layer 3解碼器,打開RhythmBox聽音樂時提示沒有XXX解碼器,如果沒有安裝這個源,可能會找不到資源下載的,裝了之後一般就能找到的
同樣在https://centos.pkgs.org/查找下載rpm包,安裝,在下載頁面有怎樣安裝的方法(Install Howto)
sudo rpm -ivh XXX
這樣就添加了3個常用的源epel、rpmforge、nux-dextop
4. 安裝chrome
在/etc/yum.repo.d/新建文件google-chrome.repo
寫入下面這些
[google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enable=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key_pub
然後用yum安裝
yum install google-chrome-stable #(應該是不行的,因為Google官方源在中國可能無法使用) # 所以加上--nogpgcheck參數 yum install google-chrome-stable --nogpgcheck
能用了,在應用程序菜單裏就能找到了
5. 安裝qbittorrent代替迅雷
yum -y install qbittorrent
qbittorrent不支持迅雷協議的鏈接,就是thunder://XXXXX
支持種子,磁力鏈接
剛安裝好CentOS 7,安裝gtk3、codeblocks、chrome、添加常用源、代替迅雷的qbittorrent