How To Install golang-github-vishvananda-netlink-devel on Fedora 36

In this tutorial we learn how to install golang-github-vishvananda-netlink-devel in Fedora 36. golang-github-vishvananda-netlink-devel is Simple netlink library for Go

Introduction

In this tutorial we learn how to install golang-github-vishvananda-netlink-devel on Fedora 36.

The netlink package provides a simple netlink library for Go. Netlink is the interface a user-space program in linux uses to communicate with the kernel. It can be used to add and remove interfaces, set ip addresses and routes, and configure ipsec. Netlink communication requires elevated privileges, so in most cases this code needs to be run as root. Since low-level netlink messages are inscrutable at best, the library attempts to provide an api that is loosely modeled on the CLI provided by iproute2. Actions like ip link add will be accomplished via a similarly named function like AddLink(). This library began its life as a fork of the netlink functionality in docker/libcontainer but was heavily rewritten to improve testability, performance, and to add new functionality like ipsec xfrm handling. This package contains the source code needed for building packages that reference the following Go import paths – github.com/vishvananda/netlink

We can use yum or dnf to install golang-github-vishvananda-netlink-devel on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install golang-github-vishvananda-netlink-devel.

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install golang-github-vishvananda-netlink-devel using dnf by running the following command:

sudo dnf -y install golang-github-vishvananda-netlink-devel

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install golang-github-vishvananda-netlink-devel using yum by running the following command:

sudo yum -y install golang-github-vishvananda-netlink-devel

To uninstall only the golang-github-vishvananda-netlink-devel package we can use the following command:

sudo dnf remove golang-github-vishvananda-netlink-devel
/usr/share/doc/golang-github-vishvananda-netlink-devel
/usr/share/doc/golang-github-vishvananda-netlink-devel/CHANGELOG.md
/usr/share/doc/golang-github-vishvananda-netlink-devel/README.md
/usr/share/gocode/src/github.com
/usr/share/gocode/src/github.com/vishvananda
/usr/share/gocode/src/github.com/vishvananda/netlink
/usr/share/gocode/src/github.com/vishvananda/netlink/.goipath
/usr/share/gocode/src/github.com/vishvananda/netlink/CHANGELOG.md
/usr/share/gocode/src/github.com/vishvananda/netlink/README.md
/usr/share/gocode/src/github.com/vishvananda/netlink/addr.go
/usr/share/gocode/src/github.com/vishvananda/netlink/addr_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/addr_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/bpf_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/bridge_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/bridge_linux_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/class.go
/usr/share/gocode/src/github.com/vishvananda/netlink/class_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/class_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/conntrack_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/conntrack_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/conntrack_unspecified.go
/usr/share/gocode/src/github.com/vishvananda/netlink/devlink_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/devlink_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/filter.go
/usr/share/gocode/src/github.com/vishvananda/netlink/filter_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/filter_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/fou.go
/usr/share/gocode/src/github.com/vishvananda/netlink/fou_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/fou_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/fou_unspecified.go
/usr/share/gocode/src/github.com/vishvananda/netlink/genetlink_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/genetlink_unspecified.go
/usr/share/gocode/src/github.com/vishvananda/netlink/go.mod
/usr/share/gocode/src/github.com/vishvananda/netlink/gtp_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/gtp_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/handle_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/handle_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/handle_unspecified.go
/usr/share/gocode/src/github.com/vishvananda/netlink/ioctl_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/link.go
/usr/share/gocode/src/github.com/vishvananda/netlink/link_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/link_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/link_tuntap_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/neigh.go
/usr/share/gocode/src/github.com/vishvananda/netlink/neigh_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/neigh_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/netlink.go
/usr/share/gocode/src/github.com/vishvananda/netlink/netlink_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/netlink_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/netlink_unspecified.go
/usr/share/gocode/src/github.com/vishvananda/netlink/netns_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/netns_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/netns_unspecified.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/addr_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/addr_linux_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/bridge_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/bridge_linux_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/conntrack_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/devlink_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/genetlink_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/link_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/link_linux_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/mpls_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/nl_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/nl_linux_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/nl_unspecified.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/rdma_link_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/route_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/route_linux_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/seg6_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/seg6local_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/syscall.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/tc_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/tc_linux_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/xfrm_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/xfrm_linux_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/xfrm_monitor_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/xfrm_monitor_linux_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/xfrm_policy_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/xfrm_policy_linux_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/xfrm_state_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/nl/xfrm_state_linux_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/order.go
/usr/share/gocode/src/github.com/vishvananda/netlink/protinfo.go
/usr/share/gocode/src/github.com/vishvananda/netlink/protinfo_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/protinfo_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/qdisc.go
/usr/share/gocode/src/github.com/vishvananda/netlink/qdisc_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/qdisc_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/rdma_link_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/rdma_link_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/route.go
/usr/share/gocode/src/github.com/vishvananda/netlink/route_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/route_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/route_unspecified.go
/usr/share/gocode/src/github.com/vishvananda/netlink/rule.go
/usr/share/gocode/src/github.com/vishvananda/netlink/rule_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/rule_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/socket.go
/usr/share/gocode/src/github.com/vishvananda/netlink/socket_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/socket_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/xfrm.go
/usr/share/gocode/src/github.com/vishvananda/netlink/xfrm_monitor_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/xfrm_monitor_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/xfrm_policy.go
/usr/share/gocode/src/github.com/vishvananda/netlink/xfrm_policy_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/xfrm_policy_test.go
/usr/share/gocode/src/github.com/vishvananda/netlink/xfrm_state.go
/usr/share/gocode/src/github.com/vishvananda/netlink/xfrm_state_linux.go
/usr/share/gocode/src/github.com/vishvananda/netlink/xfrm_state_test.go
/usr/share/licenses/golang-github-vishvananda-netlink-devel
/usr/share/licenses/golang-github-vishvananda-netlink-devel/LICENSE

References

Summary

In this tutorial we learn how to install golang-github-vishvananda-netlink-devel on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).