LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-13-2014, 04:47 AM   #1
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware-14.1-x86_64 Xfce
Posts: 61

Rep: Reputation: Disabled
(another) Tool to manage packages in slackbuilds local repository


Hello,

Initially, my aim was to have a tool to search my local copy of slackbuilds obtained from http://slackbuilds.org/ via git, but then I added more options so that now its become like a package manager for slackbuilds, which searches, displays info, gets, builds, and installs/removes the packages

It supports following functions/options:

1) search the repository (-s)
2) info about specified package (-i)
3) readme about specified package (-r)
4) goto the package directory (-g)
5) view slackbuild (-v)
6) list files contained in specified package directory (-l)
7) description about specified package (-d)
8) get/download the package (-G)
9) build the package (-B)
10) install the built package (-I)
11) upgrade installed package with built package (-U)
12) remove installed package (-R)
13) query installed packages (-q)
14) view all packages installed from the slackbuilds repo (-a)
15) update git repo of slackbuilds (-u)

Installation:
Download the tarball, extract it, and then (as root)
Code:
# make install
Usage:
Code:
$ slack <option> [package]
More info about it in the Readme: https://github.com/aadityabagga/slac.../master/README

My initial announcement in the mailing list: http://lists.slackbuilds.org/piperma...ry/011940.html

Since I posted in the mailing list, I came to know that sbopkg also has a cli-interface, and other resources like sbo_tools also exist

Nevertheless,
Source: https://github.com/aadityabagga/slack
Downloadable tarball: https://github.com/aadityabagga/slac...e/0.3.2.tar.gz

Last edited by aaditya; 01-14-2014 at 01:16 AM. Reason: Updated for new version
 
Old 02-11-2014, 09:54 PM   #2
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware-14.1-x86_64 Xfce
Posts: 61

Original Poster
Rep: Reputation: Disabled
Hello, for anyone who is interested, name changed from slack to asbt, and it currently stands at version 0.8.1, with the following changes-
Code:
0.4.0 (26/01/2014)
Add 2 new options: find and process + re-organisation of code + bugfixes.

0.4.1 (31/01/2014)
Refine find option to include only SBo packages + simplify search result.

0.5.0 (31/01/2014)
Add giving path of slackbuild package instead of simply its name + bugfixes.

0.5.1 (01/02/2014)
Made using package path more robust.

0.5.2 (01/02/2014)
Bugfixes and refinements.

0.6.0 (01/02/2014)
Add option (-c) to check for upgrades to installed packages.

0.6.1 (01/02/2014)
Made output more verbose + refinements and bugfixes.

0.6.2 (01/02/2014)
Fix regressions and bugs.

0.7.0 (03/02/2014)
Add checking if source is already present.

0.7.1 (04/02/2014)
Refinements + bugfixes + make output more verbose.

0.7.2 (07/02/2014)
Bugfix for case when slackbuilds repo dir is a symlink + 
getting source option enhanced.

0.7.3 (07/02/2014)
More bugfixes on building and getting packages + make output more verbose.

0.7.4 (08/02/2014)
Name changed from slack to asbt.

0.8.0 (08/02/14)
Check for built package before building + cleanup + bugfixes.
+ Use vim/nano as editor instead of just viewing the slackbuild using less.
+ Change wget options for getting source.

0.8.1 (10/02/14)
Refinements on getting package name if package directory was specified.
+ Update the documentation.
Its available now on SBo also(0.8.0): http://slackbuilds.org/repository/14...t/?search=asbt

Source: https://github.com/aadityabagga/asbt

A demonstration:
Code:
 ~ $ asbt -s screenfetch
desktop/screenfetch

 ~ $ asbt -r screenfetch
Screenfetch is a Bash Screenshot Information Tool. This handy
Bash script can be used to generate one of those nifty terminal
theme information + ASCII distribution logos you see in everyone's
screenshots nowadays. It will auto-detect your distribution and
display an ASCII version of that distribution's logo and some
valuable information to the right.

scrot is an optional dependency. Without it you won't be able to
use -t option (take screenshot).

 ~ $ asbt -P screenfetch
Processing screenfetch...
asbt: /home/aaditya/slackbuilds/desktop/screenfetch/screenfetch.info sourced.
Source: screenfetch-3.2.2.tar.bz2 present.
Package: screenfetch-3.2.2 already built.
Upgrading screenfetch
Password:

+==============================================================================
| Skipping package screenfetch-3.2.2-noarch-1_SBo (already installed)
+==============================================================================


 ~ $ asbt -u
Updating git repo /home/aaditya/git/slackbuilds/.git
From git://slackbuilds.org/slackbuilds
 * branch            master     -> FETCH_HEAD
Already up-to-date.

 ~ $ asbt -c
brasero:	2.32.1 -> 3.11.3
virtualbox-kernel:	4.3.4_3.10.17 -> 4.3.4
virtualbox-kernel:	4.3.4_3.10.28_custom -> 4.3.4
virtualbox-kernel:	4.3.4_3.13.2custom -> 4.3.4
volumeicon:	0.5.0 -> 0.4.6
webkitgtk:	1.10.2 -> 2.2.2

 ~ $ asbt -h
Usage: asbt <option> [package]
Options-
	[search,-s]	[query,-q]	[find,-f]
	[info,-i]	[readme,-r]	[desc,-d]
	[view,-v]	[goto,-g]	[list,-l]
	[get,-G]	[build,-B]	[install,-I]
	[upgrade,-U]	[remove,-R]	[process,-P]
	[--update,-u]	[--check,-c]	[--all,-a]	
	[--help,-h]	[--version,-V]

Using repository: /home/aaditya/slackbuilds
For more info, see the man page and/or the README.
Update 25/02/2014:

Now its at version 0.8.4 with some new options as well as bugfixes-
Code:
0.8.2 (16/02/14)
Small refinements + change the config file a little.

0.8.3 (17/02/14)
Add options (-C) for viewing ChangeLog.txt from the local slackbuilds repo
(SBo) and (-t) for tracking source and built package for specified package.
+ refinement of getting package option to rename src with only version to
name-version format + Bugfixes.

0.8.4 (22/02/14)
Bugfixes (mainly on getting a package and on track option).

Last edited by aaditya; 02-24-2014 at 10:54 AM. Reason: Update 25/02/2014
 
1 members found this post helpful.
  


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
[SOLVED] Add packages to local yum repository Kustom42 Linux - Server 2 07-17-2013 03:48 AM
Managing my own Slackware packages repository. Which tool ? Linux.tar.gz Slackware 6 10-29-2012 07:50 AM
Differences between packages of AlienBoB Repository and Slackbuilds JohnV2 Slackware 7 04-19-2012 09:53 PM
Local Ubuntu/Debian repository with self-made packages Lexus45 Ubuntu 4 01-20-2012 01:19 AM
I'd like to have a local repository of Debian Sarge packages on my drive mkenyon2 Linux - Software 2 08-05-2008 03:23 PM


All times are GMT -5. The time now is 07:48 PM.

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