How to export files from rpm file on ubuntu system

原创 2007年09月19日 16:20:00

  Author: Jiang Jiang <jznsmail at> 

   Recently, my colleague is developing JSR82 library for KVM. The compile of cldc library must use gcc 3.2 version. But the lastest version of ubuntu don't include gcc v3.2. So i only export it from old version of readhat. The below section trace steps.
1. download gcc-3.2-2-i386.rpm from It's about 37MB large.
2. must install alien tool for abstract binary files from rpm file and rebuild deb file. You can type 'sudo apt-get install alien' on the ubuntu system or debian system.
3. use 'alien -d xxx.rpm' command to create newly deb file as following:
    sudo alien -d gcc-3.2-2-i386.rpm ( you must root privilege)
the gcc_3.2-2_i386.deb file is created in the same directory, now.
4. use dpkg-deb command to abstract summary info, binary files and library files. you can as following:
    mkdir gcc   (the abstracted files will store in gcc directory)
    dpkg-deb -e gcc_3.2-2_i386.deb gcc/DEBIAN   (abstract control files)
    dpkg-deb -x gcc_3.2-2_i386.deb gcc/   (abstract binary files and library files)
The last, i only use gcc-3.2 compiler and don't wanna rebuild deb package. I f you want, you can simple type 'dpkg-deb -b gcc gcc_3.2-2_i386_moidfy.deb' command.

Debian 维护工具之 Dpkg


how-to-install-ganglia-from-prebuild-rpm-on-centos6.6-x86_64 写作缘由:之前对 ganglia 监控做过一些测试,部署使用简单;简单整理一下...

How to move a datafile from a file system to ASM

GOAL This note will guide a DBA in moving a datafile currently located on file system to an ASM...

How to Copy an Assembly From the GAC to the File System Som...
  • lJean
  • lJean
  • 2011年06月03日 17:35
  • 786

How to move a datafile from a file system to ASM (Doc ID 390274.1)

Applies to: Oracle Database - Enterprise Edition - Version to [Release 10.1 to 1...

How to fix “System program problem detected” error on Ubuntu

Copyright@BinaryTide The error "System program problem detected" comes up when a certain applicatio...

Export Xellerate configuration objects to XML files from the command-line

Export.javapackage com.zeroinllc.xellerate.utils; import java.util.*; import*; import ...

Export large data from GridView to Excel file using C#

A good way to display data is to show it in a GridView. However, it becomes difficult to manipulate ...

如何阻止文件被iTunes和iCloud同步 How do I prevent files from being backed up to iCloud and iTunes? 解决应用被打回的错误: We found that your app does not...
  • xyxjn
  • xyxjn
  • 2015年01月28日 14:08
  • 1073
您举报文章:How to export files from rpm file on ubuntu system