Showing posts with label apt. Show all posts
Showing posts with label apt. Show all posts

Installing RPMs on Ubuntu

Method 1

1. Install rpm
$ sudo aptitude install rpm

Along with other things it would install rpm2cpio. (RPM and initramfs use the CPIO archiver)

2. Extract the contents of the RPM
$ rpm2cpio < some-package.rpm | cpio -i --make-directories --verbose

3. Copy over the required files to the different directories.



Method 2

1. Install alien
$ sudo aptitude install alien

2. Covert the .rpm to .deb
$ sudo alien --to-deb --scripts --verbose some-package.rpm

NOTE: Alien internally uses rpm2cpio, so make sure you have installed rpm.

--scripts : If the .rpm has scripts then you need to include those

3. Install the .deb file.
sudo dpkg -i some-package.deb

The advantage of converting it to .deb and installing using dpkg is that you can manage the install\uninstall\reinstall and version using apt\aptitude.

new system

Just installed a new system with a fresh Ubuntu install? Install all the packages in one shot,

~$ sudo aptitude install build-essential ddd insight kdbg kdevelop eclipse eclipse-cdt eclipse-jdt kompare kate bless kile lyx cscope global octave kmplot vim emacs virtualbox-ose pdfedit scribus inkscape checkgmail kompozer manpages manpages-posix easytag gtkpod vlc libncurses5 libncurses5-dev dialog curl sun-java6-jre sun-java6-jdk wireshark qt4-dev-tools qt4-assistant qt4-designer qdevelop monodevelop umbrello git git-core gitk git-gui graphviz doxygen doxygen-gui

Apart from that, install the individual .deb for

1. Google Chrome (dev channel)
2. Skype for 32 bit (64-bit still shaky)
3. Picasa for Linux

Before installing new packages, do
~$ sudo apt-get update; sudo apt-get upgrade