LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-02-2012, 07:45 PM   #1
rng
Member
 
Registered: Aug 2011
Posts: 747

Rep: Reputation: 23
Using wajig for installing packages in debian


I have recently installed debian and found 'Wajig' to be a great package manager. It obviates the need for using different commands like apt-get, apt-cache, dpkg, deselect, aptitude etc. For quick searching and installation it is better than synaptic. It has numerous options covering virtually every aspect of package management. In many ways one is reminded of the famous package manager 'pacman' of Archlinux. I only wish there were a few more features there.

The first is colored output (as is there with 'yaourt', another good package manager of Archlinux). IMHO commandline programs with colored output are a separate class as compared to those without colored output and they are better than gui for many tasks.

Other feature (which is there in 'yaourt') is that one should only need to give a command: 'wajig <pkgname>' and the output (colored) should show the search result WITH status (whether installed or not) AND (brief) information AS WELL AS an option to install package(s) found. Hence minimal command line input combines 4 very commonly used options: search, status, info and install.

I only want to know why this program is not more frequently recommended (as compared to dpkg or apt-get)?

Last edited by rng; 12-03-2012 at 09:06 AM.
 
Old 12-02-2012, 10:01 PM   #2
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 585

Rep: Reputation: 118Reputation: 118
Wajig is a high level front-end to the other Debian package management tools, similar to Aptitute. From Wikipedia http://en.wikipedia.org/wiki/Wajig:
Quote:
Wajig is a simplified wrapper to Debian's package management tools including dpkg and APT. Wajig provides the functionality of apt-get, dpkg, dpkg-deb, apt-cache and other tools. These tools launch as a subprocess.
And from http://www.togaware.com/linux/surviv...Overview.html:
Quote:
Wajig expects a command and will call upon other Debian tools to perform the command.
And from:
Code:
apt-cache show wajig
...
Description: simplified Debian package management front end
 Wajig is a single commandline wrapper around apt, apt-cache, dpkg,
 /etc/init.d scripts and more, intended to be easy to use and providing
 extensive documentation for all of its functions.
 .
 With a suitable sudo(1) configuration, most (if not all) package installation
 as well as creation tasks can be done from a user shell. Wajig is also
 suitable for general system administration.
If it works for you, go for it. I'll stick with dpkg-*, apt-get, deselect and the like. It gives me more control, especially when building packages.
 
Old 12-09-2012, 05:52 AM   #3
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
Apparently, wajig and aptitude search for string in package names only, while apt-cache searches in description also. So apt-cache searches produce more results.

Last edited by rng; 12-09-2012 at 11:15 AM.
 
Old 12-28-2012, 09:52 PM   #4
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
The command 'wajig commands' produces a result as follows:
Code:
AUTOALTS
    Mark the Alternative to be auto-set (using set priorities)

AUTOCLEAN
    Remove no-longer-downloadable .deb files from the download cache

AUTODOWNLOAD
    Do an update followed by a download of all updated packages

AUTOREMOVE
    Remove unused dependency packages
And it is a long list. If I use command 'wajig commands | grep autoremove' I only get 'AUTOREMOVE' and not its description. If only the descriptions were on the same line as the name, one could search for required command. Is there any bash scripting method to circumvent this problem?
 
Old 12-28-2012, 10:50 PM   #5
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,805

Rep: Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810
Quote:
Originally Posted by rng View Post
If I use command 'wajig commands | grep autoremove' I only get 'AUTOREMOVE' and not its description. If only the descriptions were on the same line as the name, one could search for required command. Is there any bash scripting method to circumvent this problem?
So do this instead

Code:
wajig commands | grep -iA1 autoremove

Last edited by ruario; 12-29-2012 at 02:31 AM. Reason: correction:changed A2 to A1
 
Old 12-28-2012, 10:53 PM   #6
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
That is exactly what I needed. Thanks very much.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble installing debian packages anoraxis Slackware 30 12-01-2008 05:54 PM
installing debian packages automata Linux - Software 12 10-08-2007 11:59 AM
installing packages from debian cds fakie_flip Ubuntu 2 01-01-2006 02:08 PM
installing gcc with debian packages farkmischer Linux - Software 4 12-03-2004 11:07 AM
Installing Debian Packages eForce Linux - Distributions 4 07-12-2002 10:05 AM


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