LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-19-2008, 04:13 PM   #1
reed68
LQ Newbie
 
Registered: Aug 2007
Posts: 28

Rep: Reputation: 0
confusion on installing a driver or program


Hello,

I would like to know if I'm correctly installing a program. The package I downloaded is the Brother printer driver with filename "brhl2070nlpr-2.0.1-1.i386.rpm". I ran rpm2targz to convert it to tar.gz. The new file named, "brhl2070nlpr-2.0.1-1.i386.tar.gz".

So I,
$ tar xzvf brhl2070nlpr-2.0.1-1.i386.tar.gz

And I listed the contents
$ ls -l
-rw-r--r-- 1 brian users 35707 2008-02-19 10:40 brhl2070nlpr-2.0.1-1.i386.rpm
-rw-r--r-- 1 brian users 31422 2008-02-19 11:48 brhl2070nlpr-2.0.1-1.i386.tar.gz
drwxr-xr-x 5 brian users 4096 2008-02-19 11:48 usr
drwxr-xr-x 3 brian users 4096 2008-02-19 11:48 var

The /usr and /var directories appeared after running tar. And, within those two new directories are files. For example in /usr are the following directories, /lib /local and /bin. And within each of those directories are more files.

I couldn't find any README or INSTALL files. So, I logged on as root and copied the files from my home directory into their respective directories on the root file system. I assumed that was what I was suppose to do. That's my question. I don't know what to do. To sum up what I did I basically:
- for, "/home/brian/downloads/brotherDriver/usr/lib" I copied the files to "/usr/lib".
- for, "/home/brian/downloads/brotherDriver/usr/local" I copied the contents to "/usr/local".
- for, "/home/brian/downloads/brotherDriver/usr/bin" I copied the contents to "/usr/bin".

Is that what I am suppose to do? I really have no idea.

If you could shed some light on this I'd really appreciate it. Or if you can post a link to an explanation. Or let me know what this type of installation is called so that I can look it up myself.

Thank you for your time and help.

Brian
 
Old 02-19-2008, 04:18 PM   #2
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,299

Rep: Reputation: 89
Well, you're always better off to build from source instead of using an RPM but I guess the important question would be does it work?
 
Old 02-19-2008, 05:30 PM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Use "alien" to convert to a .tgz and install with installpkg. You must use the -c and -t options when converting the rpm. You will also need to restart cups.

Brian
 
Old 02-19-2008, 05:55 PM   #4
reed68
LQ Newbie
 
Registered: Aug 2007
Posts: 28

Original Poster
Rep: Reputation: 0
Hi Brian,

Thanks. I'm going to install Alien and do what you wrote. I'll post a reply when I get that done shortly.

Brian

Last edited by reed68; 02-19-2008 at 05:59 PM.
 
Old 02-20-2008, 04:58 PM   #5
reed68
LQ Newbie
 
Registered: Aug 2007
Posts: 28

Original Poster
Rep: Reputation: 0
Hi Brian,

Thank you so much for explaining how to do it.

After I followed your instructions I was able to select the proper printer.
Now it is correctly working with CUPS and is listed as "Make and Model: Brother HL2070N for CUPS"

Thanks again!

Brian
 
Old 02-20-2008, 05:00 PM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,391

Rep: Reputation: Disabled
Or use rpm2tgz and installpkg it. You don't need extra software like Alien to do that.
 
Old 02-20-2008, 09:47 PM   #7
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by dive View Post
Or use rpm2tgz and installpkg it. You don't need extra software like Alien to do that.
In fact, in this case, rpm2tgz does _not_ work for the brother drivers (at least as of a few months ago). If you have specific experience to the contrary I'd like to hear it. I am well aware of that program, and would have suggested it had it worked.

Brian

Last edited by BCarey; 02-20-2008 at 09:49 PM.
 
Old 02-21-2008, 12:19 PM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,391

Rep: Reputation: Disabled
Works fine here...
 
Old 02-21-2008, 01:28 PM   #9
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by dive View Post
Works fine here...
Well you must be using some special options (please enlighten me) or doing some manual work, because simply running rpm2tgz on the brother driver rpms does not create the install scripts. Yes it creates a package, but not one that can simply be installed with installpkg and work.

Brian
 
Old 02-21-2008, 01:37 PM   #10
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
rpm2tgz will NOT work in cases in which the RPM was supposed to run something upon install, such is the case with brother printer drivers and a several other RPM packages. If it doesn't work with 'rpm2tgz' I usually manually convert it, or you can use 'alien'.
 
Old 02-21-2008, 01:50 PM   #11
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,391

Rep: Reputation: Disabled
Quote:
Originally Posted by BCarey View Post
Yes it creates a package, but not one that can simply be installed with installpkg and work.
I didn't actually try the install. Usually rpm2tgz will complain if something isn't right. That usually happens with non-rh or non-fc packages. Then I must concur that your method is the right one in this case. Apologies for not doing my home work on this one.
 
Old 02-21-2008, 02:08 PM   #12
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by dive View Post
I didn't actually try the install. Usually rpm2tgz will complain if something isn't right. That usually happens with non-rh or non-fc packages. Then I must concur that your method is the right one in this case. Apologies for not doing my home work on this one.
No sweat. I was really hoping you knew some options I didn't. rpm2tgz is kind of irritating because there is no man page and "rpm2tgz --help" is not helpful at all. I wish that alien would be included instead of rpm2tgz in slackware, as it is more flexible.

Brian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
confusion installing guest OS in vmware ic_torres Linux - Newbie 3 08-19-2007 03:34 AM
Nvidia Driver Confusion (Ubuntu) champman99 Linux - Newbie 2 01-05-2007 04:17 PM
confusion in installing Solaris 10 math_1048 Solaris / OpenSolaris 4 01-02-2007 12:24 PM
Installing KDE on Gnome using CD confusion thewweundertaker Ubuntu 2 08-08-2006 04:09 PM
SMC2632W Driver Confusion WindowsVeteran Linux - Wireless Networking 1 04-20-2004 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:18 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration