手動安裝
Prev
Next

手動安裝

Although the preferred method of installing programs is via the package managers described in 新增、移除及更新程式, you can also download and install individual package files containing software. There are many different kinds of Linux package files. Most of these are associated with the package managers of specific Linux distributions.

If you find a packaged application that you wish to install, it is recommended that you check if there is a native Kubuntu package of the application available through a package manager, and that you install that version instead. This guarantees that the program is completely compatible with your system. If there is no package available through the package manager, you can install it manually. The installation procedure depends on the type of package file.

安裝/移除 .deb 檔案

The package files associated with Kubuntu have the .deb suffix because of Kubuntu's close relation to the Debian GNU/Linux distribution. You can download and install individual .deb files. You will need administrative privileges to do this.

  1. To install a .deb file, simply Right click on the .deb file, and choose Kubuntu Package MenuInstall Package.

  2. Alternatively, you can also install a .deb file by opening a terminal and typing:

    sudo dpkg -i package_file.deb
  3. To uninstall a .deb file, remove it using Adept, or type:

    sudo apt-get remove package_name

把.rpm 檔案轉換成 .deb 檔案

Another type of package files is Red Hat Package Manager Files which have the .rpm suffix. It is not recommended to install these on an Kubuntu system. In almost all cases, a native Kubuntu .deb package is available. However, if absolutely necessary, an .rpm file can be converted to a .deb package using the program alien.

Procedure 2. 安裝Alien

  1. Open Adept Manager by going to KMenuSystemAdept Manager - Manage Packages.

  2. 當系統要求輸入密碼時,請輸入你的密碼然後按OK

  3. 找尋搜尋方格,剛好位於在視窗的頂部底層,然後輸入 alien

  4. 找尋名為alien的套件然後選取,點選要求安裝按鈕。

  5. 在工具列找尋套用變更按鈕然後點擊。

  6. 待安裝完成後,關閉 Adept 管理員

Procedure 3. 使用alien

  1. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  2. 在指令行輸入sudo alien package_file.rpm然後按輸入 鍵。

  3. For more information on alien, type man alien at the command prompt. When complete, press q.

從來源安裝

Files with the .tar.gz or .tar.bz2 suffix are package files known as tarballs or source packages which are widely used in Linux. If there is no native Kubuntu package available in any of the Kubuntu repositories, you can try to compile the package from source. For tips on compiling software, look at the Compiling Software page on the Ubuntu Wiki.

Prev
Next
Home