2009年10月9日 星期五

安裝.RPM檔案在Ubuntu的系統下


If you have an rpm file for a package you wish to install, and if you cannot find a .deb debian package in any of the Ubuntu repositories or elsewhere, you can use the alien package converter application to install the .rpm file.
 最近開始對ubuntu系統的使用,也發現了一些不相容的問題 例如:不能在ubuntu的系統下直接安裝RPM檔案的問題,查了一些資料後 轉譯這篇文章與大家分享:

(如果你有一個rpm的封裝檔而你想要安裝的話且你並沒辦法找到此封裝檔的.deb Debian作業系統的安裝封裝檔 你可以使用alien 封裝轉換應用程式來安裝.rpm的檔案 )

底下是一段針對alien應用程式的介紹 暫不翻譯~
Alien is a program that converts between the rpm, dpkg, stampede slp, and slackware tgz file formats. If you want to use a package from another distribution than the one you have installed on your system, you can use alien to convert it to your preferred package format and install it.
Despite the large version number, alien is still (and will probably always be) rather experimental software. It has been used by many people for many years, but there are still many bugs and limitations.
Alien should not be used to replace important system packages, like sysvinit, shared libraries, or other things that are essential for the functioning of your system. Many of these packages are set up differently by Debian and Red Hat, and packages from the different distributions cannot be used interchangably. In general, if you can’t uninstall the package without breaking your system, don’t try to replace it with an alien version.

Instructions for Installing RPM Files Using Alien

Installing Alien

You can install alien itself from the Ubuntu Universe repository by adding the repository to your list of sources and doing:

$sudo apt-get update
$sudo apt-get install alien

Installing the .rpm file

To install the .rpm file, you first need to convert it to a .deb file which can be installed on Ubuntu.
I assume that you downloaded the package to your Desktop (~/Desktop is the directory)
You can convert the .rpm to a .deb by using the following commands.

安裝rpm檔案你一開始需要轉換成一個可以安裝在ubuntu的deb檔

假設你下載的封裝檔存放在桌面 (桌面是一個目錄)

你可以使用底下的command指令轉換你的rpm檔案變成deb檔


$cd ~/Desktop
-This will change the directory to your desktop, where you have the .rpm file.
$sudo alien -k name-of-rpm-file.rpm
- This will convert the .rpm to a .deb.
- The “-k” will keep the version number. Otherwise alien adds a “1″ to the version number.
- Tip: Use Smart Tab Completion to avoid mistyping the file names :)
$sudo dpkg -i name-of-deb-file.deb
- This will install the .deb package
Try reading the alien manpage for more details on how to convert other kinds of packages and the options available.

引用:http://embraceubuntu.com/2005/09/23/installing-using-an-rpm-file/
外文網頁的教學文 並經由 Kunhsien 翻譯,且僅供個人技術排除參考 若有版權上的問題
敬請告知或聯絡本人 我將會做文章刪除的動作 謝謝~

沒有留言:

張貼留言