LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 04-08-2009, 10:44 PM   #1
joutlancpa
Member
 
Registered: Apr 2009
Location: Orlando, FL
Distribution: Scientific Linux 6 x64
Posts: 211
Blog Entries: 1

Rep: Reputation: 31
checking for dependencies with SBoPkg


I've been using sbopkg....if I get an install error, I check the log and go back and install dependencies first...probably a stupid question, but what the best way to check for dependencies BEFORE I install something via sbopkg? thanks
 
Old 04-08-2009, 11:13 PM   #2
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
I haven't really used it, BUT I would think the best thing would be to read the README from www.slackbuilds.org, write down the required packages, add those to the que BEFORE the main package then I'm sure there is an option to install each package as it finishes.

Other than that, I would think that each package posted to slackbuilds.org would have to have a special file that listed dependencies. Then sbopkg could just reference that file.


try "sbopkg -s <pkgname>" and it should print the readme for the pkg if found then you can go from there.

Last edited by lumak; 04-08-2009 at 11:18 PM.
 
Old 04-08-2009, 11:15 PM   #3
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current, OpenBSD
Posts: 449

Rep: Reputation: 41
I think it's pretty safe to say: Always take a look at the README
 
Old 04-08-2009, 11:20 PM   #4
wheeliee
Member
 
Registered: Aug 2008
Posts: 47

Rep: Reputation: 15
Quote:
Originally Posted by thezoid View Post
I've been using sbopkg....if I get an install error, I check the log and go back and install dependencies first...probably a stupid question, but what the best way to check for dependencies BEFORE I install something via sbopkg? thanks
You should know that sbopkg ITSELF will *not* check for dependencies, I assume you were probably thinking that. There's typically a README in Slackbuilds that lists those dependencies -- you should always check them before downloading them just to be on the safe side.

Last edited by wheeliee; 04-10-2009 at 01:22 AM.
 
Old 04-08-2009, 11:59 PM   #5
joutlancpa
Member
 
Registered: Apr 2009
Location: Orlando, FL
Distribution: Scientific Linux 6 x64
Posts: 211
Blog Entries: 1

Original Poster
Rep: Reputation: 31
thanks everyone....well, I guess I was after a quick way to see not only if it had dependencies, but if I already had them or not...what's a quick command to check that? Sorry, it's been a long time. thanks
 
Old 04-09-2009, 12:38 AM   #6
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
thezoid.

1. sbopkg downloads a local copy of the repository from www.slackbuilds.org. This includes all the files required to build the package except for the source.

2. You type "sbopkg -s pkgname" to search for the package you want.

3. If found, it prints the README. Press CTRL-C to exit as continuing will just print the .SlackBuild and .info files. Most if not all of the README files for the packages on slackbuilds.org will have the dependencies that are required after a FULL install of slackware. These should be the only packages you will need to install before the one you really want.

4. If you have forgotten what you have installed from slackbuilds.org, you can type "sbopkg" to in a seperate xterm and select the PACKAGES option. This will list all slackbuilds.org packages installed on the system.

5. Build a Queue in the proper order of all the dependencies avaliable (which they all will be because packages don't get posted to slackbuilds.org unless they can be fully built in at least the most basic form)

6. Save the queue and exit.

7. run "su -c 'sbopkg -i new_queue_name'" to build and install each package in the queue.

IF you did not do a full install of slackware. you can run pkgtool to have a menu based package browser OR just look through the files in /var/adm/packages/. This list all packages installed through slackware's packaging system only.

IF you built a few packages from source with out making a proper slack build, I would hope you know what you have installed already. Check your /usr/local/ file structure for all those things.

IF you used some other method to install a package, good luck.

Last edited by lumak; 04-09-2009 at 12:40 AM.
 
Old 04-09-2009, 11:27 AM   #7
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current, OpenBSD
Posts: 449

Rep: Reputation: 41
Quote:
Originally Posted by thezoid View Post
...what's a quick command to check that?..
For me it's: ls /var/log/packages/<packagenameTAB> in any terminal
 
Old 04-09-2009, 11:36 AM   #8
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 916

Rep: Reputation: 87
Quote:
Originally Posted by lumak View Post
5. Build a Queue in the proper order of all the dependencies avaliable
What I do is I look at the README (from sbopkg), and if any dependencies are listed, I search and add those to the queue (again, checking their READMEs as well). The recently-added "Reverse" option for queue management is handy there, it reverses the list so it will first start from the dependencies. I don't use any command line at all, all can be done using the menus in sbopkg.
 
Old 04-09-2009, 01:56 PM   #9
joutlancpa
Member
 
Registered: Apr 2009
Location: Orlando, FL
Distribution: Scientific Linux 6 x64
Posts: 211
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Ok...thanks all...I get the picture....the last two programs I installed, I queued up the dependencies first and all went well....I can see an advantage to installing software like this, because usually once I get a set number of programs, it tends to stay that way other than system updates. thanks again.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking dependencies garyg007 Slackware 13 11-19-2008 02:17 PM
Checking for Dependencies yougene Slackware 3 12-21-2005 09:07 AM
Checking Dependencies RodimusProblem Programming 7 01-11-2005 08:48 PM
Checking for Dependencies Darkman_2099 Linux - Newbie 2 10-29-2003 07:52 PM
building from src ...checking dependencies?? purpleburple Linux - General 1 12-31-2002 11:09 AM


All times are GMT -5. The time now is 01:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration