You are not logged in.
When I was using Ubuntu, they had a nice bash hook that if you typed a command on the command line and it was not found it would report something like:
Program [program-name] is not installed.
Possible canidates:
program1 - a blah blah
program2 - tools for...
Is there something like that for Arch?
Last edited by Gen2ly (2012-05-02 20:18:18)
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
Yes, pkgfile in community/pkgtools .
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
Offline
Yes, pkgfile in community/pkgtools
.
Ah, thanks. Yeah, when I looked this up I found this tool but I thought I must have misunderstood its purpose after trying it,. I did:
pacman -S pkgtools
pkgfile --update
sudo sed -i 's/^CMD_SEARCH_ENABLED=0$/CMD_SEARCH_ENABLED=1/' /etc/pkgtools/pkgfile.conf
sudo -i
source /etc/profile
exit
and then ran udisks (it's not installed) and got, "bash: udisks: command not found. I have just discovered though that it does work. I ran this as regular user from tty1 and after I run sudo -i in gnome-terminal it works. Do you have any idea why it's not working as regular user from gnome-terminal?
Ah, thanks karol. Hadn't seen this. Perhaps I'll use it if I can't get pkgfile to work.
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
Did you add
source /etc/profile
to your .zshrc/.bashrc?
Worked for me in urxvt as a normal user.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Did you add
source /etc/profile
to your .zshrc/.bashrc?
Worked for me in urxvt as a normal user.
Thanks for the idea, WorMzy. No didn't work. And unfortunately now (after reboot) it's not working anywhere. Any more ideas?
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
pacman -Qo name
Offline
Yeah, I like the bash discovery method. pkgtool seem to be broke now, but just tried command-not found and it works great. Thanks for the reference karol.
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline