How to Install and Uninstall direnv Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 19,2024

1. Install "direnv" package

Please follow the instructions below to install direnv on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install direnv

2. Uninstall "direnv" package

Please follow the steps below to uninstall direnv on Ubuntu 21.04 (Hirsute Hippo):

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

3. Information about the direnv package on Ubuntu 21.04 (Hirsute Hippo)

Package: direnv
Architecture: amd64
Version: 2.25.2-2
Priority: optional
Section: universe/utils
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Punit Agrawal
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 6311
Depends: libc6 (>= 2.32)
Filename: pool/universe/d/direnv/direnv_2.25.2-2_amd64.deb
Size: 1983156
MD5sum: 16ca80fdd8ebb43282c343140c0bf6e9
SHA1: b931223cfb77a3f8c5d521f2a93c727ed0987998
SHA256: ed4cd4e347f206a1594f1a2d3f6f1eeb48b9e70febb01daccd9432c228d794f8
SHA512: e41fa143c256445142ff24dd498b2724c0f1162de1b3d56816e2837c8a3345b3b582349a78707cb10e1103924306ae7d8380dba87d7d746e51bd2e2e6a7e5d1a
Homepage: http://direnv.net/
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