UbuntuHelp:RPM/AlienHowto
来自Ubuntu中文
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
RPM files are software packages similar to the Debian (.deb) packages in Ubuntu. Alien converts a downloaded RPM into a .deb for easy installation.
目录
How to install RPM packages
/!\ Note This is not the recommended way to install packages in Ubuntu. If at all possible, install from Ubuntu's repositories using apt-get, Synaptic, or find a .deb package instead of an RPM. RPMs should be a last resort.
Install Alien
The best way to install non-native packages is Alien. To install, simply type the following in a terminal:
sudo apt-get install alien
Convert RPM
Now use Alien to convert your RPM to a Debian package.
sudo alien -d <insert rpm filename here>
Install package
The new .deb should be in your home folder.
If you use Ubuntu, double-click the package to install it. If you use Kubuntu, right-click the package and navigate to 'Kubuntu Package Menu' then click 'Install Package'.
If for some reason that fails, the following should also work:
sudo dpkg -i <name of .deb file>
Troubleshooting
Known errors:
If you can't install alien then you may need to install debhelper. You may install debhelper with Synaptic or with the following command:
sudo apt-get install debhelper