18禁网站免费,成年人黄色视频网站,熟妇高潮一区二区在线播放,国产精品高潮呻吟AV

學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 操作系統(tǒng) > Linux教程 > linux的yum卸載包命令說(shuō)明

linux的yum卸載包命令說(shuō)明

時(shí)間: 佳洲1085 分享

linux的yum卸載包命令說(shuō)明

  Linux中的yum命令可以通過(guò)相關(guān)命令對(duì)包進(jìn)行安裝、卸載或者更新等,下面由學(xué)習(xí)啦小編為大家整理了Linux的yum卸載包命令說(shuō)明的相關(guān)知識(shí),希望對(duì)大家有幫助!

  linux的yum卸載包命令說(shuō)明

  1> 使用yum remove 卸載包.

  如下所示:使用'yum remove 包名' 命令卸載包.

  Shell代碼

  # yum remove postgresql.x86_64

  Resolving Dependencies

  ---> Package postgresql.x86_64 0:9.0.4-5.fc15 will be erased

  Is this ok [y/N]: y

  Running Transaction

  Erasing : postgresql-9.0.4-5.fc15.x86_64 1/1

  Removed:

  postgresql.x86_64 0:9.0.4-5.fc15

  Complete!

  擴(kuò)展資料:有關(guān)linux的yum安裝、更新和查看包的命令

  2> 使用yum install 安裝包.

  要安裝一個(gè)包,使用 'yum install 包名'. 該命令將會(huì)自動(dòng)的安裝該包的依賴.

  Shell代碼

  # yum install postgresql.x86_64

  Resolving Dependencies

  Install 2 Package(s)

  Is this ok [y/N]: y

  Package(s) data still to download: 3.0 M

  (1/2): postgresql-9.0.4-5.fc15.x86_64.rpm | 2.8 MB 00:11

  (2/2): postgresql-libs-9.0.4-5.fc15.x86_64.rpm | 203 kB 00:00

  ------------------------------------------------------------------

  Total 241 kB/s | 3.0 MB 00:12

  Running Transaction

  Installing : postgresql-libs-9.0.4-5.fc15.x86_64 1/2

  Installing : postgresql-9.0.4-5.fc15.x86_64 2/2

  Complete!

  默認(rèn)的'yum install'命令, 將會(huì)在安裝這些包之前 提示你"接受"或"放棄", 如果想要使用yum自動(dòng)安裝包,而不對(duì)你進(jìn)行提示. 使用 -y 選項(xiàng). 如下所示:

  Shell代碼

  # yum -y install postgresql.x86_64

  3> 使用 'yum update'命令升級(jí)已存在的包.

  如果你的系統(tǒng)中存在一個(gè)舊版本的包, 使用'yum update 包名' 可以使它升級(jí)到最新版本. 當(dāng)然,這個(gè)命令也會(huì)自動(dòng)的找出并安裝該報(bào)的所有必須的依賴.

  Shell代碼

  # yum update postgresql.x86_64

  4> 使用'yum search'命令查找包.

  如果你不知道你想要安裝的包的準(zhǔn)確包名, 可以使用'yum search 關(guān)鍵字', 他將會(huì)搜索并列出匹配你的'關(guān)鍵字'的所有記錄.

  下面的實(shí)例是在yum的資源庫(kù)中搜索所有匹配關(guān)鍵字'firefox'的包, 并且將其羅列出來(lái).

  Shell代碼

  # yum search firefox

  Loaded plugins: langpacks, presto, refresh-packagekit

  ============== N/S Matched: firefox ======================

  firefox.x86_64 : Mozilla Firefox Web browser

  gnome-do-plugins-firefox.x86_64 : gnome-do-plugins for firefox

  mozilla-firetray-firefox.x86_64 : System tray extension for firefox

  mozilla-adblockplus.noarch : Adblocking extension for Mozilla Firefox

  mozilla-noscript.noarch : JavaScript white list extension for Mozilla Firefox

  Name and summary matches only, use "search all" for everything.

3634875