I want to do something like
aptitude -P install mypackage*
which should install all packages which start with "mypackage". How can I do this with aptitude
?
aptitude install '~n ^mypackage'
With multi-arch, you probably want to limit it to one architecture:
aptitude install '~n ^mypackage (~r amd64 | ~r all)'
aptitude install pack* mypack*
?
– João Pimentel Ferreira
Jun 30 '23 at 14:23
aptitude install '~n "^(my)?pack"'
or aptitude install '~n "^(pack|mypack)"'
for instance.
– Stéphane Chazelas
Jun 30 '23 at 17:48
This should do what you want:
aptitude search '^mypackage' | awk '{print $2}' | xargs aptitude install
*
wildcard is a function of the shell, not of aptitude. You can configure your shell to expand the package list. – Marco May 20 '13 at 11:09