Есть ли способ установить все пакеты, показанные нажатием на вкладку? Например, я хочу установить все доступные октавные пакеты. Когда я набираю # aptitude install octave и нажимаю TAB, отображается список пакетов, имена которых начинаются октавой.
aptitude install octave
octave octave-mpi
octave-bim octave-msh
octave-biosig octave-nan
octave-common octave-nlopt
octave-communications octave-nurbs
octave-communications-common
--More--
Как установить все из них?
Я попытался с # aptitude install octave*, но он не работает.
Aptitude поддерживает регулярные выражения. Из man aptitude:
install
Install one or more packages. The packages should be listed after
the “install” command; if a package name contains a tilde character
(“~”) or a question mark (“?”), it will be treated as a search
pattern and every package matching the pattern will be installed
(see the section “Search Patterns” in the aptitude reference
manual).
Фактически, его поисковая система достаточно мощна, чем apt, что вы должны быть более конкретным в том, что вы хотите искать. И aptitude install 'octave?' пытается установить каждый пакет, соответствующий octave ... в том числе любой другой архитектуры, добавленной в вашу систему (например, i386 в системе amd64). Итак, ограничение поиска немного:
sudo aptitude install '?name (octave*) ?architecture (native)'
или man aptitude :
sudo aptitude install '~n octave* ~r native'
... который пытался установить 360+ пакетов по сравнению с 38 из только sudo aptitude install octave.
Aptitude поддерживает регулярные выражения. Из man aptitude:
install
Install one or more packages. The packages should be listed after
the “install” command; if a package name contains a tilde character
(“~”) or a question mark (“?”), it will be treated as a search
pattern and every package matching the pattern will be installed
(see the section “Search Patterns” in the aptitude reference
manual).
Фактически, его поисковая система достаточно мощна, чем apt, что вы должны быть более конкретным в том, что вы хотите искать. И aptitude install 'octave?' пытается установить каждый пакет, соответствующий octave ... в том числе любой другой архитектуры, добавленной в вашу систему (например, i386 в системе amd64). Итак, ограничение поиска немного:
sudo aptitude install '?name (octave*) ?architecture (native)'
или man aptitude :
sudo aptitude install '~n octave* ~r native'
... который пытался установить 360+ пакетов по сравнению с 38 из только sudo aptitude install octave.
Aptitude поддерживает регулярные выражения. Из man aptitude:
install
Install one or more packages. The packages should be listed after
the “install” command; if a package name contains a tilde character
(“~”) or a question mark (“?”), it will be treated as a search
pattern and every package matching the pattern will be installed
(see the section “Search Patterns” in the aptitude reference
manual).
Фактически, его поисковая система достаточно мощна, чем apt, что вы должны быть более конкретным в том, что вы хотите искать. И aptitude install 'octave?' пытается установить каждый пакет, соответствующий octave ... в том числе любой другой архитектуры, добавленной в вашу систему (например, i386 в системе amd64). Итак, ограничение поиска немного:
sudo aptitude install '?name (octave*) ?architecture (native)'
или man aptitude :
sudo aptitude install '~n octave* ~r native'
... который пытался установить 360+ пакетов по сравнению с 38 из только sudo aptitude install octave.