You are not logged in.
Pages: 1
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
Strange - although I don't run zsh, so I'm guessing it's strange
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
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
Pacman needs 'sudo' or to be run as root.
Deej
Offline
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
Problems about [testing] packages should not be in Newbie Corner...
Offline
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
Pages: 1