|
|
|
|
|
by campground
1184 days ago
|
|
Here's a little function that I use pretty often when I want to install a package but I'm not sure what the exact package name is. Give it a keyword and it searches apt-cache and dumps the results into fzf. function finstall {
PACKAGE_NAME=$(apt-cache search $1 | fzf | cut --delimiter=" " --fields=1)
if [ "$PACKAGE_NAME" ]; then
echo "Installing $PACKAGE_NAME"
sudo apt install $PACKAGE_NAME
fi
}
|
|