Hello, I have a simple shell script that installs some packages (see the code below). However, sometimes packages disappear from the FreeBSD repository, this has happened very rarely (only once in my case, with vscode). Still, when it does happen, the entire command fails.
Is there a way to make the installation skip packages that are not available? If not, is there a command that checks if a package exists in the repository and returns something I can use in a shell function to handle this verification?
Code:
echo "Install packages"
doas pkg install -y aisleriot audacity calibre chromium darktable emacs evince-lite \
filezilla flacon foliate gimp gnome-mahjongg inkscape kid3-qt6 libreoffice \
lollypop obs-studio sox thunderbird tigervnc-viewer transmission-gtk vlc \
xournalpp en-hunspell ro-hunspell hu-hunspell nerd-fonts
Is there a way to make the installation skip packages that are not available? If not, is there a command that checks if a package exists in the repository and returns something I can use in a shell function to handle this verification?