I want to install all openoffice packages. Passing openoffice* obviously wouldn't work, because it'd look at file system. How can I do that?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
You can use shell globbing patterns as package names:
(from yum(8)) But you have to make sure that your shell does not consume your glob:
Without the single quotes the shell expands the glob if your directory contains files whose filenames begin with 'openoffice'. Alternative (inspect package list)You can query all installable package that match
To extract those package names you can use
Thus you could install those packages via:
(Those steps give you the chance to inspect the list of all 'openoffice*' matching packages, e.g. to remove obvious unwanted packages.) |
|||||||
|
|
Hmmm... I've checked it and
works properly (wildcard is accepted) |
|||||
|