Mirant...
Oct 01

wajig: tot APT amb una comana

Si ets com jo (mandrós) segurament al teu 'bashrc' s'hi van acumulant àlies com aquests:

Si ets com jo (mandrós) segurament al teu 'bashrc' s'hi van acumulant àlies com aquests:

alias dpkg='sudo /usr/bin/dpkg'
alias aptitude='sudo /usr/bin/aptitude'
alias apt-get='sudo /usr/bin/apt-get'
alias apt-cache='sudo /usr/bin/apt-cache'

Però algunes de les subcomandes no necessiten permisos de root. Seria pràctic que l'eina decidís si li cal 'sudo' per cada subcomanda, i que l'invoqués ella soleta.

Posats a demanar, també aniria bé tenir una comanda i no quatre. Després d'un temps es converteix en automàtic, però què passa quan algú comença amb Debian? Sempre que ensenyo gestió de paquets a un sysadmin novell el torno boig: el contingut del paquet el mires amb 'dpkg' però l'instal·les amb 'apt-get', i pots buscar si un paquet existeix amb qualsevol excepte 'dpkg'...

L'alternativa és wajig. De fet no és una alternativa sino un wrapper al voltant de totes aquestes eines, amb crides a 'sudo' incloses i compleció a cop de tabulador. Unes quantes equivalències:

wajig list              dpkg -l        
wajig list-files ...    dpkg -L ...
wajig install ...       apt-get install ...
wajig installr ...      apt-get -o APT::Install-Recommends=true install ...
wajig showupgrade       apt-get -s upgrade
wajig search ...        apt-cache search ...
wajig policy ...        apt-cache policy ...
wajig list-orphans      deborphan         
wajig start ...         /etc/init.d/... start  
wajig find-file ...     dpkg -S ...
wajig fix-configure     dpkg --configure -a
wajig fix-install       apt-get -f install
wajig updatealts ...    update-alternatives --config ...

La llista completa, a la web de wajig. No estic segur de si m'estalviarà temps (o neurones) quan administri paquets. Però estic segur de que m'estalviarà temps (i neurones) quan estigui formant a algú.

Comments

1 Generic Cialis says...

Hi I like your site and would like to propose a link exchange. Please copy paste the following code to your page: <a href=http://www.humblevoice.com/genericcialis>Generic Cialis</a> - if you use HTML http://www.humblevoice.com/genericcialis - Generic Cialis - if you use BBCODE then please email me and I will happily add your link to my site.

Posted at 2:08 p.m. on March 17, 2010

2 Cheap Cialis says...

Hi I like your site and would like to propose a link exchange. Please copy paste the following code to your page: <a href=http://www.humblevoice.com/cheapcialis/>Cheap Cialis</a> - if you use HTML http://www.humblevoice.com/cheapcialis/ - Cheap Cialis - if you use BBCODE then please email me and I will happily add your link to my site.

Posted at 4:19 p.m. on March 17, 2010

3 Cheap Cialis says...

Hi I like your site and would like to propose a link exchange. Please copy paste the following code to your page: <a href=http://www.humblevoice.com/ordercialis/>Order Cialis</a> - if you use HTML http://www.humblevoice.com/ordercialis/ - Order Cialis - if you use BBCODE then please email me and I will happily add your link to my site.

Posted at 9:48 p.m. on March 17, 2010

4 Cheap Cialis says...

Hi I like your site and would like to propose a link exchange. Please copy paste the following code to your page: <a href=http://www.humblevoice.com/cheapcialisonline/>Cialis Online</a> - if you use HTML http://www.humblevoice.com/cheapcialisonline/ - Cialis Online - if you use BBCODE and <a href=http://www.humblevoice.com/cialis20mg/>Cialis 20mg</a> - if you use HTML http://www.humblevoice.com/cialis20mg/ - Cialis 20mg - if you use BBCODE

then please email me and I will happily add your link to my site.

Posted at 3:26 a.m. on March 18, 2010

5 Tadalafil says...

Hi I like your site and would like to propose a link exchange. Please copy paste the following code to your page: <a href=http://www.humblevoice.com/tadalafil/>Tadalafil</a> - if you use HTML http://www.humblevoice.com/tadalafil/ - Tadalafil - if you use BBCODE

then please email me and I will happily add your link to my site.

Posted at 6:34 a.m. on March 18, 2010

6 Cialsi Tadalafil says...

Hi I like your site and would like to propose a link exchange. Please copy paste the following code to your page: <a href=http://www.humblevoice.com/cialistadalafil/>Cialsi Tadalafil</a> - if you use HTML http://www.humblevoice.com/cialistadalafil/ - Cialsi Tadalafil - if you use BBCODE

then please email me and I will happily add your link to my site.

Posted at 9:22 a.m. on March 18, 2010

7 Buy Levitra says...

<a href=http://www.humblevoice.com/TadalafilCialis/>TadalafilCialis</a> http://www.humblevoice.com/TadalafilCialis/ - TadalafilCialis http://www.humblevoice.com/TadalafilCialis/ <a href=http://www.humblevoice.com/buylevitra/>Buy Levitra</a> http://www.humblevoice.com/buylevitra/ - Buy Levitra http://www.humblevoice.com/buylevitra/ <a href=http://www.humblevoice.com/levitraonline/>Levitra Online</a> http://www.humblevoice.com/levitraonline/ - Levitra Online http://www.humblevoice.com/levitraonline/ <a href=http://www.humblevoice.com/genericlevitra/>Generic Levitra</a> http://www.humblevoice.com/genericlevitra/ - Generic Levitra http://www.humblevoice.com/genericlevitra/ <a href=http://www.humblevoice.com/vardenafil/>Vardenafil</a> http://www.humblevoice.com/vardenafil/ - Vardenafil http://www.humblevoice.com/vardenafil/

Posted at 11:43 a.m. on March 18, 2010