LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2006, 03:30 AM   #1
MKSN
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Rep: Reputation: 0
.deb files on RH


Hi,

I am new to this Linux environment and right now I am using the RedHat 9.0. May I know whether is there any way for me to install a debian (.deb) file? As I know, .deb is for Debian while .tar is for RedHat. But now I have downloaded a .deb file and I only have RedHat 9.0 installed. Is there any possible way for me to install the .deb file?

Thank you very much.

Regards,
MKSN
 
Old 07-18-2006, 04:18 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can convert a deb file to rpm, using a tool called alien. The resulting rpm may or may not work on rpm based distros.
 
Old 07-18-2006, 04:55 AM   #3
penguintutor
Member
 
Registered: Jun 2006
Location: UK
Distribution: Ubuntu, Mandriva, Redhat and Fedora
Posts: 118

Rep: Reputation: 15
First to clear up a bit about different package formats

Debian / Ubuntu etc. Use .deb Files
RedHat / Fedora / Mandriva / Suse / many others use RPM (.rpm) files

tar / tar.gz / tgz / tar.bz2 files can be used across different distros. These are often generic, uncompiled programs that need to be compiled and installed, although some do include their own installer which is run after extracting the files from the archive.

The .deb / .rpm files contain the program files, but also have information on dependencies and any scripts that need running before or after installation. These may be system specific so it's always best to get the correct package, designed for the system you are using.

The alternative is to use the tar file, but this often needs to be compiled manually, which may require other software / libraries installed on your machine.

If possible always use an appropriate package created for your distribution.

The alien command can be used to convert between the different package formats, but you are far better off trying to get the correct package for your distribution.
A correct package will handle all the dependencies correctly and has been tested for your distribution, whereas using a package that has been converted may end up not working due to failed dependencies.


If you are determined to install a debian package onto a RPM based system then you can download the alien program:
http://sourceforge.net/project/showf...?group_id=1625

You will also need to get hold of the dpkg commands etc.

Once it is all installed you can then use:

alien --to-rpm package.deb
then install it using your normal add/remove programs
or
alien -i --to-rpm package.deb
to perform this in a single step.

If I haven't convinced you already this is not recommended. It is far safer (if possible) to get either a RPM package designed for your system, or a generic tar archive.
 
Old 07-18-2006, 05:08 AM   #4
MKSN
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the information.

I was trying to find the .rpm package for the xosd libraries for ARM architecture but all I can find is the .deb package found at the Debian website.

Anyway, thank you very much for all the helps!

Cheers.
 
Old 07-18-2006, 05:41 AM   #5
penguintutor
Member
 
Registered: Jun 2006
Location: UK
Distribution: Ubuntu, Mandriva, Redhat and Fedora
Posts: 118

Rep: Reputation: 15
You could try downloading the source tar ball and installing from that: http://www.ignavus.net/xosd-2.2.12.tar.gz

Code:
tar -xvzf xosd-2.2.12.tar.gz
cd xosd-2.2.12
./configure
make
(optional)make check
make install
You may need to install some development packages / libraries which are normally available on your original distribution disks.
 
Old 07-18-2006, 06:07 AM   #6
MKSN
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Mr. Penguintutor.

Right now I have able to come out a simple XOSD program on my PC. But how bout if I want to use a cross-compiler (arm-linux-gcc) to compile it?
 
Old 07-18-2006, 07:47 AM   #7
penguintutor
Member
 
Registered: Jun 2006
Location: UK
Distribution: Ubuntu, Mandriva, Redhat and Fedora
Posts: 118

Rep: Reputation: 15
Cross-compiling is beyond what I've been involved with.

you need to read the INSTALL / readme docs and also have an understanding of the autoconf / automake tools.
See: http://sourceware.org/autobook/autob...obook_toc.html.

When using the ./configure stage you need to add the appropriate options.
e.g.
Quote:
If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use .deb files???? E.M.P99 Linux - Newbie 4 04-11-2006 02:41 PM
64 bit .deb files? yekrahs Debian 2 11-25-2005 04:57 AM
.deb files unkind Debian 2 11-29-2003 08:48 PM
Where you place non deb files Kroenecker Debian 4 10-12-2003 10:55 AM
Command for .deb files plexter Linux - Newbie 2 06-26-2003 09:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration