How to export files from rpm file on ubuntu system
2007-09-19 16:20
615 查看
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
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 Setup NFS (Network File System) on RHEL/CentOS/Fedora and Debian/Ubuntu
- How to Setup NFS (Network File System) on RHEL/CentOS/Fedora and Debian/Ubuntu
- Install an RPM Package on Ubuntu Linux(from how to geek)
- How to Copy Archivelog Files From ASM to Filesystem and vice versa
- 7zip File: How to Uncompress 7z files on Ubuntu, Debian, Fedora
- How to configure LAMP server on Ubuntu System
- How to fix “System program problem detected” error on Ubuntu
- Linux恢复被删除的文件 How To Recover Deleted Files From Your Linux System
- How To Build xfstools, xfsprogs And xfsdump From Source On Ubuntu
- How to move a datafile from a file system to ASM
- How to move a datafile from ASM to the file system
- how to generate pb file from ckpt files?
- How to Copy an Assembly From the GAC to the File System
- How to install PostGIS 2.0 on Ubuntu 11.10 (oneiric) from source
- How to copy a datafile from ASM to a file system not using RMAN
- How to find large file under root file system on AIX?
- How to copy a datafile from ASM to a file system not using RMAN (Doc ID 428893.1)
- Copying files from ASM to file system
- How to Record your Voice from the Microphone on Ubuntu/Linux Mint
- 【转】How to build and install PHP 5.6.9 from source on Ubuntu 14.04 VPS