LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-04-2009, 11:16 AM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Sbopkg...


Hi Forum

Does the sbopkg tool keeps track of packages that I have installed w/ src2pkg...? installpkg'added packages...?

If not, which tool performs this... ? One may forget something is already instaled... and install another version over it...

BRGDS

Alex
 
Old 11-04-2009, 11:39 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
there's no such tool: you have to look in /var/log/packages
everything you install from package is logged there.
if you copy something manually around or if you do the "./configure; make; make install" thing these won't be logged.

Last edited by ponce; 11-04-2009 at 11:45 AM.
 
Old 11-04-2009, 11:56 AM   #3
zbreaker
Member
 
Registered: Dec 2008
Location: New York
Distribution: Slack -current, siduction
Posts: 253

Rep: Reputation: 29
Sbopkg is a fantastic tool for installing and updating packages from SlackBuilds.org.
 
Old 11-04-2009, 12:17 PM   #4
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
This will generate a file "addedpkgs.txt" listing all none standard Slackware packages (ones you've added):
Code:
slackpkg update && slackpkg -dialog=off -batch=on -default_answer=no clean-system > addedpkgs.txt
This will show a list on screen :
Code:
slackpkg update && slackpkg clean-system
Run them as root. Be careful when running the second one - be sure to hit cancel.

As far as I'm aware sbopkg looks for "_SBo" as a "repository tag" in package names of packages in /var/log/packages. In effect this will miss your own installed packages if they don't have this tag.
 
Old 11-04-2009, 12:36 PM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by bgeddy View Post
As far as I'm aware sbopkg looks for "_SBo" as a "repository tag" in package names of packages in /var/log/packages. In effect this will miss your own installed packages if they don't have this tag.
I use my own tag with sbopkg, so I build packages tagged "ponce" and sbopkg recognize that tag for upgrades,lists,etc.
I have added the line
Code:
export TAG=ponce
in /etc/sbopkg/sbopkg.conf and edited /usr/sbin/sbopkg substituting this line (978 in the latest version)
Code:
REPO_TAG=${REPOSITORIES[$((i + 3))]}
with
Code:
REPO_TAG=ponce
no way to set it in conf because it's unset in sbopkg script before being set to that value.

Last edited by ponce; 11-04-2009 at 12:38 PM.
 
Old 11-04-2009, 12:39 PM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
You can always just run pkgtool and choose to view the files in a package which will show you a list of all packages installed. I use a ROX AppDir which I came up with which offers a few functions like a quick listing of the packages(ls -1 /var/log/packages), a dialog for searching for which package installs a ceratin file, or a function which searches for a file in the MANIFEST listing of all the available packages (since I only install about 25% or less of the available ones). Just dropping a package on the AppDir installs it, or just clicking the icon runs the normal pktool.
 
Old 11-04-2009, 12:47 PM   #7
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
I use my own tag with sbopkg, so I build packages tagged "ponce" and sbopkg recognize that tag for upgrades,lists,etc.
I have added the line
@poncez: Thanks for that idea - it's quite a good one. I briefly looked through the sbopkg script to see that REPO_TAG information but didn't think of customizing that code to suit - good thinking.
 
Old 11-04-2009, 12:55 PM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
glad you liked it, remember only to reedit when you upgrade sbopkg
 
Old 11-04-2009, 03:40 PM   #9
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
Or better yet, file this as a feature request. :-)
 
Old 11-04-2009, 06:41 PM   #10
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Or better yet, file this as a feature request. :-)
Hi, Chess, and thanks for replying. I have been having a look at the Google Code project for Sbopkg and the Sbopkg home page but can't find a place to submit such a request. Apologies if I'm being dumb and missing something obvious! What's the preferred way of doing this ?
 
Old 11-04-2009, 06:54 PM   #11
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Allrighty ppl,

So I have installed sbopkg, it is now syncing after having created all those dirs,..

Since I have a Slackware64 13, I have to change the arch in all the slackbuilds I have used... so... If I use sbopkg to Install/update anything, will it handle this arch thing automatically for me, or will I still have to nano...*.SlackBuild to change ARCH to x86_64...?

BRGDS

Alex
 
Old 11-04-2009, 07:25 PM   #12
slackd
Member
 
Registered: Sep 2009
Location: Bangalore, India
Distribution: Fedora, Slackware, Arch Linux
Posts: 260
Blog Entries: 1

Rep: Reputation: 60
Quote:
Originally Posted by Alexvader View Post
Since I have a Slackware64 13, I have to change the arch in all the slackbuilds I have used... so... If I use sbopkg to Install/update anything, will it handle this arch thing automatically for me, or will I still have to nano...*.SlackBuild to change ARCH to x86_64...?

BRGDS

Alex
nope. edit yourself.
 
Old 11-04-2009, 07:34 PM   #13
slackd
Member
 
Registered: Sep 2009
Location: Bangalore, India
Distribution: Fedora, Slackware, Arch Linux
Posts: 260
Blog Entries: 1

Rep: Reputation: 60
no no no...am sorry...thats not my answer, i was having internet connection problems and could not edit properly. here is the full post: am terribly sorry

Quote:
ABOUT $ARCH
You may be wondering why $ARCH is not a configuration setting in the
sbopkg.conf file. The reason is that it does not have to be. First,
sbopkg does some checking (using 'uname -m') to determine what the sys-
tem's architecture is. If the architecture is x86_64, then sbopkg
automatically sets ARCH=x86_64. If the architecture is not x86_64,
then sbopkg will inherit any $ARCH settings in the environment. This
means, the user can add, for example, 'export ARCH=i686' in their
.bashrc or similar file, or the user can also execute something in the
root terminal like 'export ARCH=i686 && sbopkg'. The user can also
manually add it to their sbopkg.conf file if they wish. Finally, if
$ARCH is not set by the user and sbopkg does not detect an x86_64 sys-
tem, then $ARCH will default to whatever $ARCH is set to in the Slack-
Build scripts.
 
Old 11-04-2009, 08:15 PM   #14
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
sbopkg is a great tool imho.

Alexvader

ARCH is set automatically according to your architecture afaik.
 
Old 11-04-2009, 10:13 PM   #15
veeall
Member
 
Registered: May 2007
Location: Estonia
Distribution: Slackware64-current
Posts: 298

Rep: Reputation: 56
'upgradepkg --install-new PACKAGENAME' command makes sure that package gets upgraded when there's another version of it already installed. When there's no other version of the software installed it installs new package.

For keeping an eye on /var/log/packages i use 'qtgsmanager' which is third party unsupported gui frontend for pkgtools, but has nice featureset and does not have to be run as root for basic operations.
 
  


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
[SOLVED] sbopkg - installation files wingevil Slackware 3 10-16-2009 09:18 PM
Sbopkg Updates SqdnGuns Slackware 4 09-11-2009 10:26 PM
Sbopkg Popularity Murdock1979 Slackware 35 09-08-2009 01:53 AM
Sbopkg 0.30.1 Released chess Slackware 10 09-01-2009 11:10 AM
Sbopkg error adriv Slackware 5 04-09-2009 04:11 PM

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

All times are GMT -5. The time now is 09:40 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