How Do I Install Uuidgen

I need uuidgen for my Linux shell scripts, but it's not on my Debian 7.1 net install.

apt-get install uuidgen fails, it's not clear what package I should be using, and existing questions seem to ask for alternatives rather than the real uuidgen.

Could someone with experience with uuidgen comment on where to get it, and why it's not in its own package?

PS. If this is on the wrong StackExchange site, point me in the correct direction.

7

3 Answers

Try installing this:

sudo apt-get install uuid-runtime

To find out which package provides a file use apt-file:

sudo apt-get install apt-file
sudo apt-file update
apt-file search uuidgen

This will yield as output

uuid-runtime: /usr/bin/uuidgen

So 'uuid-runtime' is the package to install.

sudo apt-get install uuid-runtime.

As Donal Lafferty's link states, it is contained in the package uuid-runtime.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest