How to Install and Uninstall golang-github-mitchellh-go-homedir-dev Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: November 22,2024

1. Install "golang-github-mitchellh-go-homedir-dev" package

Learn how to install golang-github-mitchellh-go-homedir-dev on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install golang-github-mitchellh-go-homedir-dev

2. Uninstall "golang-github-mitchellh-go-homedir-dev" package

This guide covers the steps necessary to uninstall golang-github-mitchellh-go-homedir-dev on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove golang-github-mitchellh-go-homedir-dev $ sudo apt autoclean && sudo apt autoremove

3. Information about the golang-github-mitchellh-go-homedir-dev package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: golang-github-mitchellh-go-homedir-dev
Priority: extra
Section: universe/devel
Installed-Size: 19
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Architecture: all
Source: golang-github-mitchellh-go-homedir
Version: 0.0~git20150831.0.df55a15-1
Filename: pool/universe/g/golang-github-mitchellh-go-homedir/golang-github-mitchellh-go-homedir-dev_0.0~git20150831.0.df55a15-1_all.deb
Size: 3956
MD5sum: 375bcfcf44ff9854de7395198c52233c
SHA1: 3d0f3c89bd4a9fe0a104d9dd45e455f8a4b495ad
SHA256: dae18811fc0539e4a45e96583e43a54cf792bb9b99a8ffa023c34e14c41474ea
Description-en: Go library for detecting and expanding the user's home directory
This is a Go library for detecting the user's home directory without the use of
cgo, so the library can be used in cross-compilation environments.
.
Usage is incredibly simple, just call homedir.Dir() to get the home directory
for a user, and homedir.Expand() to expand the ~ in a path to the home
directory.
.
Why not just use os/user? The built-in os/user package requires cgo on Darwin
systems. This means that any Go code that uses that package cannot cross
compile. But 99% of the time the use for os/user is just to retrieve the home
directory, which we can do for the current user without cgo. This library does
that, enabling cross-compilation.
Description-md5: 96006430e67e029ffeb111f3b3901bf3
Homepage: https://github.com/mitchellh/go-homedir
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu