ubuntu package management question
Chris Green
cl at isbd.net
Fri Dec 11 15:03:04 UTC 2020
On Fri, Dec 11, 2020 at 09:44:03AM -0500, Robert Heller wrote:
> If one wants to install some program or library and knows the name of the
> program or library how does one find out what the *package name* is? Is there
> no utility like 'yum search' (available on RedHat flavored systems)?
>
> Specificly, I need qmake for QT5 installed on a Ubuntu 18.04 system. What
> package do I install? dpkg-query is no help. Or must I search through the
> _Package files in /var/lib/apt/lists/? Is there no better way? Has noone
> created a utility for this?
>
You need 'apt-file' which you will probably need to install too as
it's not installed by default. Then it's easy:-
apt-file search <name of file>
Will provide the name of the package which provides the file. You can
put a full path such as /usr/bin/qmake if just qmake produces too many
hits.
I've just done it for you:-
chris$ apt-file search /usr/bin/qmake
gridengine-client: /usr/bin/qmake_sge
qtchooser: /usr/bin/qmake
So you need to install qtchooser.
--
Chris Green
More information about the ubuntu-users
mailing list