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

Last updated: May 18,2024

1. Install "cons" package

This tutorial shows how to install cons on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install cons

2. Uninstall "cons" package

Please follow the instructions below to uninstall cons on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove cons $ sudo apt autoclean && sudo apt autoremove

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

Package: cons
Architecture: all
Version: 2.3.0.1+2.2.0-2
Priority: optional
Section: universe/devel
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Hwei Sheng Teoh
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 241
Depends: perl, libdigest-md5-perl
Filename: pool/universe/c/cons/cons_2.3.0.1+2.2.0-2_all.deb
Size: 89510
MD5sum: 4cdf79a53b50999e17808a7be213899c
SHA1: 324732b2e9100bcd87d1626c5c4412c778303328
SHA256: d2d2023b84d3fd8b396a482e8ba139420cdfc2bb2c099ae8f35e60bd7b4e84af
SHA512: 05e668bcd9a7b26efe3f408d61ee1ea1583bdadb20684de69b9ba5ad2cab7ca2f3b00abdd4399b94ae376a14f6df0e4e7b229828993f1ee77f7440f7c35dc17e
Description-en: a Perl replacement for Make
Excerpted from the README file:
.
Cons is a system for constructing, primarily, software, but is quite
different from previous software construction systems. Cons was
designed from the ground up to deal easily with the construction of
software spread over multiple source directories. Cons makes it easy
to create build scripts that are simple, understandable and
maintainable. Cons ensures that complex software is easily and
accurately reproducible.
.
Cons uses a number of techniques to accomplish all of this.
Construction scripts are just Perl scripts, making them both easy to
comprehend and very flexible. Global scoping of variables is replaced
with an import/export mechanism for sharing information between
scripts, significantly improving the readability and maintainability
of each script. Construction environments are introduced: these are
Perl objects that capture the information required for controlling the
build process. Multiple environments are used when different semantics
are required for generating products in the build tree. Cons
implements automatic dependency analysis and uses this to globally
sequence the entire build. Variant builds are easily produced from a
single source tree. Intelligent build subsetting is possible, when
working on localized changes. Overrides can be setup to easily
override build instructions without modifying any scripts. MD5
cryptographic signatures are associated with derived files, and are
used to accurately determine whether a given file needs to be rebuilt.
Description-md5: 8864740a1853140109f0656a997bb7c1