国产宅男网站在线|亚洲A级性爱免费视频|亚洲中精品级在线|午夜福利AA毛

  • <dd id="gf5jf"><th id="gf5jf"></th></dd>

    <cite id="gf5jf"><label id="gf5jf"></label></cite>
  • <div id="gf5jf"><listing id="gf5jf"></listing></div>
    學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 操作系統(tǒng) > Linux教程 > linux的yum卸載包命令說明

    linux的yum卸載包命令說明

    時間: 佳洲1085 分享

    linux的yum卸載包命令說明

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

      linux的yum卸載包命令說明

      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!

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

      2> 使用yum install 安裝包.

      要安裝一個包,使用 'yum install 包名'. 該命令將會自動的安裝該包的依賴.

      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'命令, 將會在安裝這些包之前 提示你"接受"或"放棄", 如果想要使用yum自動安裝包,而不對你進(jìn)行提示. 使用 -y 選項. 如下所示:

      Shell代碼

      # yum -y install postgresql.x86_64

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

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

      Shell代碼

      # yum update postgresql.x86_64

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

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

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

      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