How to export files from rpm file on ubuntu system

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

  Author: Jiang Jiang <jznsmail at tom.com> 

   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 rmp.pbone.net. 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.

Bibliography:
Debian 维护工具之 Dpkg

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

how-to-install-ganglia-from-prebuild-rpm-on-centos6.6-x86_64

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

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

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

How to Copy an Assembly From the GAC to the File System

http://blogs.msdn.com/b/johnwpowell/archive/2009/01/14/how-to-copy-an-assembly-from-the-gac.aspx Som...
  • lJean
  • lJean
  • 2011-06-03 17:35
  • 740

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 move a datafile from a file system to ASM (Doc ID 390274.1)

Applies to: Oracle Database - Enterprise Edition - Version 10.1.0.5 to 10.2.0.3 [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 java.io.*; 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 ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)