Fedora 14 安裝五筆輸入法 及 yum查找所需軟件包yum provides使用
新安裝fedora13,跟以前版本一樣,裡面沒有自帶五筆輸入法,中文輸入法只有一個拼音,難道現在用五筆的人就那麼少嗎?!
以前安裝五筆都是網上查安裝fedora下yum 安裝五筆的命令直接運行,根本沒有記住,更不知道怎麼通過yum查找需要軟件包的方法。於是想探索一下yum查詢命令的使用。
最開始直接使用yum install ibus-wubi,看五筆包是不是叫ibus-wubi,結果
No package ibus-wubi available.
看來不是這個名字,於是yum –help找查詢軟件包的命令,其中有一行
list 列出一個或一組軟件包
於是yum list ibus
列出如下
已安裝的軟件包
ibus.i686 1.3.3-1.fc13 @anaconda-InstallationRepo-201005130056.i386
可安裝的軟件包
ibus.i686 1.3.6-1.fc13 updates
又運行
yum list ibus
yum list ibus-wubi
yum list wubi
yum list ibus-
都沒有結果,看來yum list列出的是已經安裝包。
再查yum –help
裡面有命令
provides 查找提供指定內容的軟件包
大概這個命令可以,於是
[root@notebookf13 feng]# yum provides wubi
已加載插件:presto, refresh-packagekit
警告:3.0.x 版本的 yum 匹配文件名時會出錯。可以用 "*/wubi" 或 "*bin/wubi" 得到這個結果
No Matches found
語法不對,照提示來:
[root@notebookf13 feng]# yum provides */wubi
已加載插件:presto, refresh-packagekit
fedora/filelists_db | 16 MB 02:22
updates/filelists_db | 5.4 MB 00:48
No Matches found
之前安裝印象,五筆輸入法包名字不是wubi,難怪沒有相附。改換查詢命令yum provides *wubi 再查詢
[root@notebookf13 feng]# yum provides *wubi
已加載插件:presto, refresh-packagekit
^Z
[1]+ Stopped yum provides *wubi
[root@notebookf13 feng]# bg 1
[1]+ yum provides *wubi &
[root@notebookf13 feng]# yum –help
[查詢包比較慢,就丟後台了,再查一下yum --help]
[root@notebookf13 feng]# ibus-table-wubi-1.2.0.20090715-5.fc12.noarch : Wubi input methods for ibus-table
Repo : fedora
匹配來自於:
Other : ibus-table-wubi = 1.2.0.20090715-5.fc12
scim-python-xingma-wubi-0.1.13rc1-6.fc12.i686 : WuBi table for Python XingMa IM
: engine
Repo : fedora
匹配來自於:
Other : scim-python-xingma-wubi = 0.1.13rc1-6.fc12
ibus-table-xingma-1.2.0.20100305-2.fc13.noarch : The structural tables for
: IBus-Table
Repo : fedora
匹配來自於:
Other : ibus-table-wubi = 1.2.0.20100305-2.fc13
果然,查出五筆輸入法的wubi包名了,ibus-table-wubi
好了,可以yum安裝
yum install ibus-table-wubi
下面是整個過程控制台記錄,留作參考:
[feng@notebookf13 ~]$ su
密碼:
[root@notebookf13 feng]# yum install ibus-wubi
已加載插件:presto, refresh-packagekit
fedora/metalink | 13 kB 00:01
fedora | 4.3 kB 00:00
fedora/primary_db | 10 MB 01:33
updates/metalink | 8.8 kB 00:00
updates | 4.5 kB 00:00
updates/primary_db | 2.9 MB 00:25
設置安裝進程
No package ibus-wubi available.
無須任何處理
[root@notebookf13 feng]# yum –help
已加載插件:presto, refresh-packagekit
Usage: yum [options] COMMAND
List of Commands:
check Check for problems in the rpmdb
check-update 檢查是否有軟件包更新
clean 刪除緩存的數據
deplist 列出軟件包的依賴關系
downgrade downgrade a package
erase 從系統中移除一個或多個軟件包
groupinfo 顯示組的詳細信息
groupinstall 向系統中安裝一組軟件包
grouplist 列出可安裝的組
groupremove 從系統中移除一組軟件包
help 顯示用法信息
history Display, or use, the transaction history
info 顯示關於軟件包或組的詳細信息
install 向系統中安裝一個或多個軟件包
list 列出一個或一組軟件包
localinstall 安裝本地的 RPM
makecache 創建元數據緩存
provides 查找提供指定內容的軟件包
reinstall 覆蓋安裝一個包
repolist 顯示已配置的倉庫
resolvedep 判斷哪個包提供了指定的依賴
search 在軟件包詳細信息中搜索指定字符串
shell 運行交互式的 yum 外殼
update 更新系統中的一個或多個軟件包
upgrade 更新軟件包同時考慮軟件包取代關系
version Display a version for the machine and/or available repos.
Options:
-h, –help show this help message and exit
-t, –tolerant 容忍錯誤
-C, –cacheonly run entirely from system cache, don’t update cache
-c [config file], –config=[config file]
配置文件路徑
-R [minutes], –randomwait=[minutes]
命令最長等待時間
-d [debug level], –debuglevel=[debug level]
調試輸出級別
–showduplicates 在 list/search 命令下,顯示倉庫裡重復的條目。
-e [error level], –errorlevel=[error level]
錯誤輸出級別
–rpmverbosity=[debug level name]
debugging output level for rpm
-q, –quiet 安靜的操作
-v, –verbose verbose operation
-y, –assumeyes 回答所有的問題為是
–version 顯示 Yum 版本信息並退出
–installroot=[path] 設置目標根目錄
–enablerepo=[repo] 啟用一個或多個倉庫(支持通配符)
–disablerepo=[repo] 禁用一個或多個倉庫(支持通配符)
-x [package], –exclude=[package]
用全名或通配符排除軟件包
–disableexcludes=[repo]
禁止從主配置,從倉庫或者從任何位置排除
–obsoletes 升級時考慮軟件包取代關系
–noplugins 禁用 Yum 插件
–nogpgcheck 禁用 gpg 簽名檢測
–disableplugin=[plugin]
禁用指定名稱的插件
–enableplugin=[plugin]
enable plugins by name
–skip-broken 跳過有依賴問題的軟件包
–color=COLOR 配置是否使用顏色
–releasever=RELEASEVER
set value of $releasever in yum config and repo files
–disablepresto disable Presto plugin and don’t download any deltarpms
插件選項:
[root@notebookf13 feng]# yum list ibus
已加載插件:presto, refresh-packagekit
已安裝的軟件包
ibus.i686 1.3.3-1.fc13 @anaconda-InstallationRepo-201005130056.i386
可安裝的軟件包
ibus.i686 1.3.6-1.fc13 updates
[root@notebookf13 feng]# yum list ibus-wubi
已加載插件:presto, refresh-packagekit
錯誤:沒有匹配的軟件包可以列出
[root@notebookf13 feng]# yum list wubi
已加載插件:presto, refresh-packagekit
錯誤:沒有匹配的軟件包可以列出
[root@notebookf13 feng]# yum list ibus-
已加載插件:presto, refresh-packagekit
錯誤:沒有匹配的軟件包可以列出
[root@notebookf13 feng]# yum provides wubi
已加載插件:presto, refresh-packagekit
警告:3.0.x 版本的 yum 匹配文件名時會出錯。可以用 "*/wubi" 或 "*bin/wubi" 得到這個結果
No Matches found
[root@notebookf13 feng]# yum provides */wubi
已加載插件:presto, refresh-packagekit
fedora/filelists_db | 16 MB 02:22
updates/filelists_db | 5.4 MB 00:48
No Matches found
[root@notebookf13 feng]# yum provides *wubi
已加載插件:presto, refresh-packagekit
^Z
[1]+ Stopped yum provides *wubi
[root@notebookf13 feng]# bg 1
[1]+ yum provides *wubi &
[root@notebookf13 feng]# yum –help
已加載插件:presto, refresh-packagekit
Usage: yum [options] COMMAND
List of Commands:
check Check for problems in the rpmdb
check-update 檢查是否有軟件包更新
clean 刪除緩存的數據
deplist 列出軟件包的依賴關系
downgrade downgrade a package
erase 從系統中移除一個或多個軟件包
groupinfo 顯示組的詳細信息
groupinstall 向系統中安裝一組軟件包
grouplist 列出可安裝的組
groupremove 從系統中移除一組軟件包
help 顯示用法信息
history Display, or use, the transaction history
info 顯示關於軟件包或組的詳細信息
install 向系統中安裝一個或多個軟件包
list 列出一個或一組軟件包
localinstall 安裝本地的 RPM
makecache 創建元數據緩存
provides 查找提供指定內容的軟件包
reinstall 覆蓋安裝一個包
repolist 顯示已配置的倉庫
resolvedep 判斷哪個包提供了指定的依賴
search 在軟件包詳細信息中搜索指定字符串
shell 運行交互式的 yum 外殼
update 更新系統中的一個或多個軟件包
upgrade 更新軟件包同時考慮軟件包取代關系
version Display a version for the machine and/or available repos.
Options:
-h, –help show this help message and exit
-t, –tolerant 容忍錯誤
-C, –cacheonly run entirely from system cache, don’t update cache
-c [config file], –config=[config file]
配置文件路徑
-R [minutes], –randomwait=[minutes]
命令最長等待時間
-d [debug level], –debuglevel=[debug level]
調試輸出級別
–showduplicates 在 list/search 命令下,顯示倉庫裡重復的條目。
-e [error level], –errorlevel=[error level]
錯誤輸出級別
–rpmverbosity=[debug level name]
debugging output level for rpm
-q, –quiet 安靜的操作
-v, –verbose verbose operation
-y, –assumeyes 回答所有的問題為是
–version 顯示 Yum 版本信息並退出
–installroot=[path] 設置目標根目錄
–enablerepo=[repo] 啟用一個或多個倉庫(支持通配符)
–disablerepo=[repo] 禁用一個或多個倉庫(支持通配符)
-x [package], –exclude=[package]
用全名或通配符排除軟件包
–disableexcludes=[repo]
禁止從主配置,從倉庫或者從任何位置排除
–obsoletes 升級時考慮軟件包取代關系
–noplugins 禁用 Yum 插件
–nogpgcheck 禁用 gpg 簽名檢測
–disableplugin=[plugin]
禁用指定名稱的插件
–enableplugin=[plugin]
enable plugins by name
–skip-broken 跳過有依賴問題的軟件包
–color=COLOR 配置是否使用顏色
–releasever=RELEASEVER
set value of $releasever in yum config and repo files
–disablepresto disable Presto plugin and don’t download any deltarpms
插件選項:
[root@notebookf13 feng]# ibus-table-wubi-1.2.0.20090715-5.fc12.noarch : Wubi input methods for ibus-table
Repo : fedora
匹配來自於:
Other : ibus-table-wubi = 1.2.0.20090715-5.fc12
scim-python-xingma-wubi-0.1.13rc1-6.fc12.i686 : WuBi table for Python XingMa IM
: engine
Repo : fedora
匹配來自於:
Other : scim-python-xingma-wubi = 0.1.13rc1-6.fc12
ibus-table-xingma-1.2.0.20100305-2.fc13.noarch : The structural tables for
: IBus-Table
Repo : fedora
匹配來自於:
Other : ibus-table-wubi = 1.2.0.20100305-2.fc13
[root@notebookf13 feng]# fg
bash: fg: job has terminated
[1]+ Done yum provides *wubi
[root@notebookf13 feng]# yum install ibus-table-wubi
已加載插件:presto, refresh-packagekit
設置安裝進程
Package ibus-table-wubi is obsoleted by ibus-table-xingma, trying to install ibus-table-xingma-1.2.0.20100305-2.fc13.noarch instead
解決依賴關系
–> 執行事務檢查
—> 軟件包 ibus-table-xingma.noarch 0:1.2.0.20100305-2.fc13 將被 升級
–> 處理依賴關系 ibus-table >= 1.2,它被軟件包 ibus-table-xingma-1.2.0.20100305-2.fc13.noarch 需要
–> 執行事務檢查
—> 軟件包 ibus-table.noarch 0:1.2.0.20100111-7.fc13 將被升級
–> 完成依賴關系計算
依賴關系解決
================================================================================
軟件包 架構 版本 倉庫 大小
================================================================================
正在安裝:
ibus-table-xingma noarch 1.2.0.20100305-2.fc13 fedora 8.4 M
為依賴而安裝:
ibus-table noarch 1.2.0.20100111-7.fc13 fedora 244 k
事務概要
================================================================================
安裝 2 軟件包
更新 0 軟件包
總下載量:8.7 M
Installed size: 30 M
確定嗎?[y/N]:y
下載軟件包:
Setting up and reading Presto delta metadata
fedora/prestodelta | 414 B 00:00
Processing delta metadata
Package(s) data still to download: 8.7 M
(1/2): ibus-table-1.2.0.20100111-7.fc13.noarch.rpm | 244 kB 00:14
(2/2): ibus-table-xingma-1.2.0.20100305-2.fc13.noarch.rp | 8.4 MB 09:26
——————————————————————————–
總計 15 kB/s | 8.7 MB 09:41
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID e8e40fde: NOKEY
fedora/gpgkey | 3.2 kB 00:00 …
導入 GPG 密鑰 0xE8E40FDE "Fedora (13) <[email protected]>",來自 /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
確定嗎?[y/N]:y
運行 rpm_check_debug
執行事務測試
事務測試成功
執行事務
正在安裝 : ibus-table-1.2.0.20100111-7.fc13.noarch 1/2
正在安裝 : ibus-table-xingma-1.2.0.20100305-2.fc13.noarch 2/2
已安裝:
ibus-table-xingma.noarch 0:1.2.0.20100305-2.fc13
作為依賴被安裝:
ibus-table.noarch 0:1.2.0.20100111-7.fc13
完畢!