How to Install and Uninstall direnv Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 20,2024

1. Install "direnv" package

This is a short guide on how to install direnv on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install direnv

2. Uninstall "direnv" package

This is a short guide on how to uninstall direnv on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove direnv $ sudo apt autoclean && sudo apt autoremove

3. Information about the direnv package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: direnv
Priority: optional
Section: universe/utils
Installed-Size: 2927
Maintainer: Ubuntu Developers
Original-Maintainer: Punit Agrawal
Architecture: amd64
Version: 2.7.0-1
Filename: pool/universe/d/direnv/direnv_2.7.0-1_amd64.deb
Size: 707534
MD5sum: dc88e0413502f363ce4789a9855bdc38
SHA1: 2c8b91e1e4e88237ac442102076c86b555f764f4
SHA256: 7cb1ac17fea7e399deee07b96699edddd591f4c7280fb4dc156e13b7a4bd0f10
Description-en: Utility to set directory specific environment variables
direnv is an environment variable manager for your shell. It knows
how to hook into bash, zsh and fish shell to load or unload
environment variables depending on your current directory. This
allows one to have project-specific environment variables and not
clutter the "~/.profile" file.
.
Before each prompt it checks for the existence of an ".envrc" file in
the current and parent directories. If the file exists, it is loaded
into a bash sub-shell and all exported variables are then captured by
direnv and then made available to your shell.
.
Because direnv is compiled into a single static executable it is fast
enough to be unnoticeable on each prompt. It is also language
agnostic and can be used to build solutions similar to rbenv, pyenv,
phpenv, ...
Description-md5: eb622bfa54c9d46458c730287447bda5
Homepage: http://direnv.net/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu