How To Install Agda on Fedora 34
Introduction
In this tutorial we learn how to install Agda
on Fedora 34.
What is Agda
Agda is a dependently typed functional programming language inductive families, which are similar to Haskell’s GADTs, but they can be indexed by values and not just types. It also has parameterized modules, mixfix operators, Unicode characters, and an interactive Emacs interface (the type checker can assist in the development of your code). Agda is also a proof assistant checking proofs. Agda is based on intuitionistic type theory, a foundational system for constructive mathematics developed by the Swedish logician Per Martin-Löf. It has many similarities with other proof assistants based on dependent types, such as Coq, Epigram and NuPRL.
We can use yum
or dnf
to install Agda
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install Agda.
Install Agda on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install Agda
using dnf
by running the following command:
sudo dnf -y install Agda
Install Agda on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install Agda
using yum
by running the following command:
sudo yum -y install Agda
How To Uninstall Agda on Fedora 34
To uninstall only the Agda
package we can use the following command:
sudo dnf remove Agda
Agda Package Contents on Fedora 34
/usr/bin/agda
/usr/lib/.build-id
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/f4ce584082823261b6944ed6f064ff8e9817b6
/usr/share/Agda-2.6.1
/usr/share/Agda-2.6.1/Agda.css
/usr/share/Agda-2.6.1/JS
/usr/share/Agda-2.6.1/JS/agda-rts.js
/usr/share/Agda-2.6.1/JS/biginteger.js
/usr/share/Agda-2.6.1/MAlonzo
/usr/share/Agda-2.6.1/MAlonzo/src
/usr/share/Agda-2.6.1/MAlonzo/src/MAlonzo
/usr/share/Agda-2.6.1/MAlonzo/src/MAlonzo/RTE.hs
/usr/share/Agda-2.6.1/agda.sty
/usr/share/Agda-2.6.1/lib
/usr/share/Agda-2.6.1/lib/prim
/usr/share/Agda-2.6.1/lib/prim/Agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Bool.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Bool.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Char
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Char.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Char.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Char/Properties.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Char/Properties.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Coinduction.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Coinduction.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Cubical
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Cubical/Glue.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Cubical/Glue.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Cubical/HCompU.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Cubical/HCompU.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Cubical/Id.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Cubical/Id.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Cubical/Path.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Cubical/Path.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Cubical/Sub.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Cubical/Sub.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Equality
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Equality.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Equality.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Equality/Erase.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Equality/Erase.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Equality/Rewrite.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Equality/Rewrite.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Float
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Float.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Float.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Float/Properties.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Float/Properties.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/FromNat.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/FromNat.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/FromNeg.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/FromNeg.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/FromString.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/FromString.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/IO.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/IO.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Int.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Int.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/List.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/List.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Nat.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Nat.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Reflection
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Reflection.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Reflection.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Reflection/Properties.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Reflection/Properties.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Sigma.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Sigma.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Size.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Size.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Strict.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Strict.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/String
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/String.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/String.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/String/Properties.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/String/Properties.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/TrustMe.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/TrustMe.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Unit.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Unit.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Word
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Word.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Word.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Word/Properties.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Builtin/Word/Properties.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Primitive
/usr/share/Agda-2.6.1/lib/prim/Agda/Primitive.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Primitive.agdai
/usr/share/Agda-2.6.1/lib/prim/Agda/Primitive/Cubical.agda
/usr/share/Agda-2.6.1/lib/prim/Agda/Primitive/Cubical.agdai
/usr/share/Agda-2.6.1/postprocess-latex.pl
/usr/share/doc/Agda
/usr/share/doc/Agda/CHANGELOG.md
/usr/share/doc/Agda/README.md
/usr/share/emacs/site-lisp/agda
/usr/share/emacs/site-lisp/agda/agda-input.el
/usr/share/emacs/site-lisp/agda/agda-input.elc
/usr/share/emacs/site-lisp/agda/agda2-abbrevs.el
/usr/share/emacs/site-lisp/agda/agda2-abbrevs.elc
/usr/share/emacs/site-lisp/agda/agda2-highlight.el
/usr/share/emacs/site-lisp/agda/agda2-highlight.elc
/usr/share/emacs/site-lisp/agda/agda2-mode-pkg.el
/usr/share/emacs/site-lisp/agda/agda2-mode-pkg.elc
/usr/share/emacs/site-lisp/agda/agda2-mode.el
/usr/share/emacs/site-lisp/agda/agda2-mode.elc
/usr/share/emacs/site-lisp/agda/agda2-queue.el
/usr/share/emacs/site-lisp/agda/agda2-queue.elc
/usr/share/emacs/site-lisp/agda/agda2.el
/usr/share/emacs/site-lisp/agda/agda2.elc
/usr/share/emacs/site-lisp/agda/annotation.el
/usr/share/emacs/site-lisp/agda/annotation.elc
/usr/share/emacs/site-lisp/agda/eri.el
/usr/share/emacs/site-lisp/agda/eri.elc
/usr/share/emacs/site-lisp/site-start.d/agda-mode-init.el
/usr/share/licenses/Agda
/usr/share/licenses/Agda/LICENSE
References
Summary
In this tutorial we learn how to install Agda
on Fedora 34 using yum and dnf.