How To Install vcpkg on Fedora 36

In this tutorial we learn how to install vcpkg in Fedora 36. vcpkg is C++ Library Manager

Introduction

In this tutorial we learn how to install vcpkg on Fedora 36.

What is vcpkg

Vcpkg is a package manager for the different C and C++ libraries. Vcpkg can collect usage data. The data collected by Microsoft is anonymous. Fedora package has telemetry disabled by default. If you want to enable telemetry, you should remove the /etc/profile.d/vcpkg.sh file or unset the VCPKG_DISABLE_METRICS environment variable.

We can use yum or dnf to install vcpkg on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install vcpkg.

Install vcpkg on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install vcpkg using dnf by running the following command:

sudo dnf -y install vcpkg

Install vcpkg on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install vcpkg using yum by running the following command:

sudo yum -y install vcpkg

How To Uninstall vcpkg on Fedora 36

To uninstall only the vcpkg package we can use the following command:

sudo dnf remove vcpkg

vcpkg Package Contents on Fedora 36

/etc/profile.d/vcpkg.sh
/usr/bin/vcpkg
/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/67a7856116a31c758cd0e8298e4777c79afa0b
/usr/share/doc/vcpkg
/usr/share/doc/vcpkg/README.md
/usr/share/licenses/vcpkg
/usr/share/licenses/vcpkg/LICENSE.txt
/usr/share/licenses/vcpkg/NOTICE.txt

References

Summary

In this tutorial we learn how to install vcpkg on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).