You are not logged in.

#1 2009-08-03 16:15:49

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

pacman update & pacman-color

Since there is a pacman update in [testing], I had to remove pacman-color and shaman (since they needed pacman<3.3).

I had aliases for pacman->pacman-color and I got rid of them. So when I source ~/.zshrc without the alias it says:
zsh: command not found: pacman-color
When I run pacman.

My current solution is to symlink /usr/bin/pacman-color to /usr/bin/pacman, but is there a better way?

Offline

#2 2009-08-03 16:27:55

deej
Member
Registered: 2008-02-08
Posts: 395

Re: pacman update & pacman-color

Strange - although I don't run zsh, so I'm guessing it's strange smile

Given that your aliases were *all* in .zshrc and you removed them all
and 'source ~/,zshrc' is a valid command in zsh then something is odd.

I take it you ran your aliases as your normal user. Try logging in as root
and running pacman.

Deej

Offline

#3 2009-08-03 16:36:02

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

Re: pacman update & pacman-color

I had it in /root/.bashrc. So I `su`'d, deleted it, sourced the bashrc, and it worked (without symbolic linking).
Using sudo as normal user also works.

It just doesn't work if I type `pacman` without sudo (for if I want to use -Qo, -Qqe, -Ss, or something like that).

Offline

#4 2009-08-03 16:39:19

deej
Member
Registered: 2008-02-08
Posts: 395

Re: pacman update & pacman-color

Pacman needs 'sudo' or to be run as root.

Deej

Offline

#5 2009-08-03 18:47:50

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

Re: pacman update & pacman-color

I know that. But if I want to use something like `pacman -Qo` (to find out which package owns a file), `pacman -Qqe` (to list packages), or `pacman -Ss` (to search), I don't need root.

And pacman-color is v3.3.0 now. So it's kinda solved.

Last edited by Arm-the-Homeless (2009-08-03 18:48:17)

Offline

#6 2009-08-03 23:43:31

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: pacman update & pacman-color

Problems about [testing] packages should not be in Newbie Corner...

Offline

#7 2009-08-04 10:36:09

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: pacman update & pacman-color

I think it happened because although you sourced your .zshrc, those aliases were already created and usable. If you log out and in again, the aliases aren't created and you can use pacman again. Anyway, the last time I updated pacman I used /usr/bin/pacman to call it until I updated pacman-color.

Offline

Board footer

Powered by FluxBB