You are not logged in.

#1 2015-04-28 22:40:12

hoome
Member
From: Brazil
Registered: 2013-07-18
Posts: 48

apt-get like interface for pacman

Hello,

This is my first public contribution for Arch Linux community,

I built this script because i use arch on both of my desktops and debian on my servers and i get really confused sometimes with the options because of the mechanical typing, i got myself typing pacman install apache2 and apt-get -Syy or even trying to run pacman on debian and apt-get on arch.

I dont know how this will be acepted, its something that advanced users normally dislike, but, for newcomers i think that is a good option.

I wrote this very simple interface for pacman that converts into a apt-like utility, its use common pacman commands (yes, it uses pacman at background) and dont mess with pacman workout.

Ive upload the project on my github: https://github.com/drhoome/pac-get

Its very simple and straigthfoward (yes, just give execution permission and use, for now, theres no install/build method or configuration files, its build on top of python and should work with Python 2.7 and 3.x without any extra library).

Any feedback is welcome, even if for saying that the script is really useless for you wink

There's no manual or wiki right now, but, the software is really like apt-get, aptitude or apt-cache, and there's a built-in doc by typing pac-get --help.

Last edited by hoome (2015-04-28 22:42:07)

Offline

#2 2015-04-29 06:52:06

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: apt-get like interface for pacman

Looks nice, but wouldn't you rather use pacman commands? tongue

One thing to point out: The update command gives pacman -Syy. Please be aware that just updating the package cache is considered bad practice if an upgrade does not follow right after, so maybe you should remove the update command. The pacman rosetta might also be of interest to you. Look it up on the wiki.

Last edited by runical (2015-04-29 06:52:35)

Offline

#3 2015-05-04 18:44:31

4thdwarflord
Member
Registered: 2015-05-04
Posts: 1

Re: apt-get like interface for pacman

This is exactly what I need to have that little bit of comfort moving from Debian to arch, which I will be doing as soon as possible now.

Offline

#4 2015-05-05 10:05:41

parchd
Member
Registered: 2014-03-08
Posts: 421

Re: apt-get like interface for pacman

When I was running Debian on my laptop and Arch on my desktop I  used aliases so that if I was on debian and tried to use a pacman command, I'd get a message along the lines of "This is debian, stupid!" followed by the apt equivalent running. Something similar would happen if I tried to use apt on Arch.
Even though I still use debian on my servers, I never type the wrong command in - I think my brain now has one set of commands stored for servers and one for 'workstations.'

Offline

#5 2015-05-05 10:55:09

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: apt-get like interface for pacman

I do the same thing with aliases the commands of apt-get/pacman can do the basic same things though I have to say I like pacman switches better. having something like pkgi can mean sudo apt-get install or sudo pacman -S or pkgs can mean apt-cache search or pacman -Ss. with something like lfs I will always chose pacman. the script is good though especially for those used to apt-get good job!

Last edited by bleach (2015-05-05 10:59:21)

Offline

#6 2015-05-06 15:51:15

helix
Member
Registered: 2013-02-17
Posts: 180

Re: apt-get like interface for pacman

I find pacman to be a better name (and game) than apt-get or aptitude or pac-get tongue

Offline

#7 2015-05-06 16:07:02

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: apt-get like interface for pacman

Thanks for posting, I'm pretty sure it'll be useful for someone

Offline

#8 2015-05-06 16:59:18

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: apt-get like interface for pacman

Indeed, -Syy and -Su is considered bad practice. I might also add, that the double yy will create way more traffic on every update, than a single y would. Then, -Syyuu is not the same as dist-upgrade.

Offline

Board footer

Powered by FluxBB