Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing .rpm or .deb on gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
LiKao
n00b
n00b


Joined: 27 Feb 2012
Posts: 4

PostPosted: Mon Feb 27, 2012 6:14 pm    Post subject: Installing .rpm or .deb on gentoo Reply with quote

Hi,

I am currently looking for a way to install *.rpm or *.deb files on Gentoo. However all posts I seem to be able to find on that topic just say that I should use a native gentoo package for that purpose and that there is no way to do what I want.

However I am currently trying to install my printer, which I have been using under ubuntu for quite some time, in a new Gentoo box. The printer is a Epson BX620 FWD network printer, and there are drivers for linux directly available from Epson. However Epson only provides these drivers as .deb or .rpm for direct installation in the system. Hence I need a way to get to the content of these files and somehow install it in my system.

Is there any way to achieve this?

Aparently there is a gutenprint driver for the BX 620 FWD (at least this is what I am currently using in Ubuntu), but it would be nice to be able to install the most up to date driver version from Epson itself. Also there does not seem to be any other way to use the network scanner under linux except using these drivers.

Thanks for your help.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Feb 27, 2012 6:35 pm    Post subject: Reply with quote

You can use app-arch/rpm2targz or app-arch/deb2targz to convert packages, then just extract them into a tmp location and copy over what's needed by hand. Keep a log of what you do, just in case you need to remove drivers.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Yuu
Apprentice
Apprentice


Joined: 23 Dec 2008
Posts: 223
Location: France

PostPosted: Mon Feb 27, 2012 6:50 pm    Post subject: Reply with quote

Hi LiKao,

you can also use "ar", from the package sys-devel/binutils :
Code:
$ ar x file.deb



And as Jaglover, keep a track of what you've installed ;)
_________________
Main laptop : T8300 cpu | 200 GB hard drive | 2 GB of ram | 8600M GT | Gentoo x86_64
Server : Celeron 220 cpu | 250 GB hard drive | 2 GB of ram | SiS 662 VGA | Gentoo x86_64
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Mon Feb 27, 2012 6:55 pm    Post subject: Reply with quote

You can also use Paludis, which is as simple as running a command in the unpacked rpm/deb directory and will let you uninstall it cleanly like any other package.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3920
Location: Hamburg

PostPosted: Mon Feb 27, 2012 10:02 pm    Post subject: Reply with quote

You might use the "rpm" command + the parameters to ignore both dependencies and install scripts.
In that case you should inspect the installed libs/programs with "ldd" or "lddtree" to see, whether there are additional libs to be installed.
Back to top
View user's profile Send private message
biodothack
n00b
n00b


Joined: 11 Jan 2012
Posts: 34

PostPosted: Thu Apr 26, 2012 10:30 pm    Post subject: printer Reply with quote

have you fun withit, have you tried looking for the ppd file for your mode as this is how I got my hp working,
_________________
big brother is watching, are you ready?
Back to top
View user's profile Send private message
phunehehe
n00b
n00b


Joined: 26 Sep 2010
Posts: 21
Location: Vietnam

PostPosted: Tue Aug 07, 2012 3:37 pm    Post subject: Reply with quote

According to http://www.miketaylor.org.uk/tech/deb/ , which seems like the home page of dev2targz:
Quote:
DO NOT USE THE deb2targz SCRIPT!
It turns out to be complete waste of time: Debian packages are ar achives, and can be inspected and unpacked using the standard Unix command-line utility ar

I take that to mean that ar is the better way, as it is available by default.
_________________
https://phunehehe.net/
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1607
Location: indiana

PostPosted: Mon Feb 04, 2013 8:03 am    Post subject: Reply with quote

used the ar command for the .dev file, but i received 2 files .. ?!?
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen9 7950x ; Geforce1650 ; kernel 6.5 ; XFCE
Back to top
View user's profile Send private message
cb88
n00b
n00b


Joined: 26 Dec 2011
Posts: 28

PostPosted: Sun Feb 17, 2013 7:47 am    Post subject: Reply with quote

you can extract those files with

tar xvf file.tar.gz

They are just plain tar.gz files and the control.tar.gz contains md5sum etc.. and the data.tar.gz contains the acutal packaged binaries
Back to top
View user's profile Send private message
artbody
Guru
Guru


Joined: 15 Sep 2006
Posts: 489
Location: LB

PostPosted: Thu Oct 22, 2015 8:19 am    Post subject: Reply with quote

app-arch/deb2targz didn't work

so i tried to open the *.deb with ark
i saw 3 files
    control.tar.gz
    data.tar.xz
    debian-binary

so i extracted data.tar.xz
and opened this file again with ark
and extracted
Code:
usr/bin/*
usr/share/*

works well :D
_________________
Never give up
WM : E16 the true enlightenment
achim
Back to top
View user's profile Send private message
gentoo-freak
n00b
n00b


Joined: 11 Sep 2009
Posts: 16

PostPosted: Wed Jun 22, 2016 12:14 pm    Post subject: End of Story? Reply with quote

artbody wrote:
app-arch/deb2targz didn't work

so i tried to open the *.deb with ark
i saw 3 files
    control.tar.gz
    data.tar.xz
    debian-binary

so i extracted data.tar.xz
and opened this file again with ark
and extracted
Code:
usr/bin/*
usr/share/*

works well :D


and the end of the story is.......

[] works well ?
[] does not work at all ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum