How To Install q on Fedora 34

q is Equational programming language Equational programming language

Introduction

In this tutorial we learn how to install q on Fedora 34.

What is q

Q is a powerful and extensible functional programming language based on the term rewriting calculus. You specify an arbitrary system of equations which the interpreter uses as rewrite rules to reduce expressions to normal form. Q is useful for scientific programming and other advanced applications, and also as a sophisticated kind of desktop calculator. The distribution includes the Q programming tools, a standard library, add-on modules for interfacing to Curl, GNU dbm, ODBC, GNU Octave, ImageMagick, Tcl/Tk, XML/XSLT and an Emacs mode. q 7.11 42.fc34 x86_64 1.0 M q-7.11-42.fc34.src.rpm fedora Equational programming language http GPLv2+ Q is a powerful and extensible functional programming language based on the term rewriting calculus. You specify an arbitrary system of equations which the interpreter uses as rewrite rules to reduce expressions to normal form. Q is useful for scientific programming and other advanced applications, and also as a sophisticated kind of desktop calculator. The distribution includes the Q programming tools, a standard library, add-on modules for interfacing to Curl, GNU dbm, ODBC, GNU Octave, ImageMagick, Tcl/Tk, XML/XSLT and an Emacs mode.

We can use yum or dnf to install q on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install q.

Install q 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 q using dnf by running the following command:

sudo dnf -y install q

Install q 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 q using yum by running the following command:

sudo yum -y install q

How To Uninstall q on Fedora 34

To uninstall only the q package we can use the following command:

sudo dnf remove q

q Package Contents on Fedora 34

/usr/bin/q
/usr/bin/qc
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/ca7ee5829efe1ecd7fa389550c9b45b5d0857c
/usr/lib/.build-id/18
/usr/lib/.build-id/18/7123dd96471779c27470e0bd8e011d118e3f7f
/usr/lib/.build-id/25
/usr/lib/.build-id/25/dcec95b7ade9c46f1630a8d0e9814fe430b65c
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/72fd5480e44dde0a6045086c1cfa075ce5a7ca
/usr/lib/.build-id/42
/usr/lib/.build-id/42/5e283f33c493bb6a80c2c30846deaff0e3fe03
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/0cf83a7c8acb2b6122226acd2b29014ee71096
/usr/lib/.build-id/85
/usr/lib/.build-id/85/289ecd456c6b9087eaafc455653e4b8a8ec0aa
/usr/lib/.build-id/88
/usr/lib/.build-id/88/275f833cbe7b85c9f4913990eb76a16759bd60
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/736431ec905bca23b0209daa6558a47e5e7939
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/edb1f2ee0be309e8386aef4d9e6a6f004e69a6
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/58f76e8a9cbbf150c7f7aff6d6067ec63b7ac6
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/2ec2d34da2159b36638533ba62c21fc153157f
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/145f65fb077a5c2a0adf39f1677850674c49ba
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/cca4875255a82f25c6397b95cd017af46866d5
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/580d416fc62fab04878017c36d17d6bfca6a01
/usr/lib64/libq.so.8
/usr/lib64/libq.so.8.0.0
/usr/lib64/libqint.so.2
/usr/lib64/libqint.so.2.0.0
/usr/lib64/q
/usr/lib64/q/clib.so
/usr/lib64/q/gdbm.so
/usr/lib64/q/libtool
/usr/lib64/q/octave.so
/usr/lib64/q/odbc.so
/usr/lib64/q/swig.so
/usr/lib64/q/system.so
/usr/lib64/q/xml.so
/usr/share/doc/q
/usr/share/doc/q/etc
/usr/share/doc/q/etc/AUTHORS
/usr/share/doc/q/etc/COPYING
/usr/share/doc/q/etc/ChangeLog
/usr/share/doc/q/etc/NEWS
/usr/share/doc/q/etc/README
/usr/share/doc/q/etc/README-Clib
/usr/share/doc/q/etc/README-Curl
/usr/share/doc/q/etc/README-DXL
/usr/share/doc/q/etc/README-Gdbm
/usr/share/doc/q/etc/README-Magick
/usr/share/doc/q/etc/README-ODBC
/usr/share/doc/q/etc/README-Octave
/usr/share/doc/q/etc/README-SWIG
/usr/share/doc/q/etc/README-Tk
/usr/share/doc/q/etc/README-XML
/usr/share/doc/q/etc/q-mode.el
/usr/share/doc/q/etc/q.vim
/usr/share/doc/q/etc/q.xml
/usr/share/doc/q/etc/qexitrc
/usr/share/doc/q/etc/qinitrc
/usr/share/doc/q/examples
/usr/share/doc/q/examples/basics.q
/usr/share/doc/q/examples/cgi.q
/usr/share/doc/q/examples/creverse.c
/usr/share/doc/q/examples/creverse.q
/usr/share/doc/q/examples/csv.q
/usr/share/doc/q/examples/ctype.c
/usr/share/doc/q/examples/ctype.q
/usr/share/doc/q/examples/curl
/usr/share/doc/q/examples/curl/curltest.q
/usr/share/doc/q/examples/daemon.q
/usr/share/doc/q/examples/dfs.q
/usr/share/doc/q/examples/dgram.q
/usr/share/doc/q/examples/dnf.q
/usr/share/doc/q/examples/dxl
/usr/share/doc/q/examples/dxl/dxl_sample.cfg
/usr/share/doc/q/examples/dxl/dxl_sample.net
/usr/share/doc/q/examples/dxl/dxl_sample.q
/usr/share/doc/q/examples/dxl/dxl_simple.q
/usr/share/doc/q/examples/dxl/sombrero.cfg
/usr/share/doc/q/examples/dxl/sombrero.dx
/usr/share/doc/q/examples/dxl/sombrero.net
/usr/share/doc/q/examples/dxl/sombrero.q
/usr/share/doc/q/examples/except.q
/usr/share/doc/q/examples/factor.q
/usr/share/doc/q/examples/fcntl.q
/usr/share/doc/q/examples/fibs.q
/usr/share/doc/q/examples/fibs.sh
/usr/share/doc/q/examples/fixpt.q
/usr/share/doc/q/examples/gamma.q
/usr/share/doc/q/examples/gdbm
/usr/share/doc/q/examples/gdbm/gdbm_dict.q
/usr/share/doc/q/examples/gdbm/testdb.q
/usr/share/doc/q/examples/getpass.q
/usr/share/doc/q/examples/globexamp.q
/usr/share/doc/q/examples/graph.q
/usr/share/doc/q/examples/grid.q
/usr/share/doc/q/examples/hashed.q
/usr/share/doc/q/examples/huffman.q
/usr/share/doc/q/examples/lambda.q
/usr/share/doc/q/examples/menu.q
/usr/share/doc/q/examples/newton.q
/usr/share/doc/q/examples/odbc
/usr/share/doc/q/examples/odbc/odbc_examp.q
/usr/share/doc/q/examples/pipes.q
/usr/share/doc/q/examples/popen2.q
/usr/share/doc/q/examples/primetest.q
/usr/share/doc/q/examples/pty.q
/usr/share/doc/q/examples/qint.c
/usr/share/doc/q/examples/queens.q
/usr/share/doc/q/examples/queens2.q
/usr/share/doc/q/examples/queens3.q
/usr/share/doc/q/examples/queue.q
/usr/share/doc/q/examples/regexamp.q
/usr/share/doc/q/examples/rlexamp.q
/usr/share/doc/q/examples/rot13.q
/usr/share/doc/q/examples/searchtree.q
/usr/share/doc/q/examples/select.q
/usr/share/doc/q/examples/signal.q
/usr/share/doc/q/examples/streams.q
/usr/share/doc/q/examples/swig
/usr/share/doc/q/examples/swig/example.c
/usr/share/doc/q/examples/swig/example.i
/usr/share/doc/q/examples/swig/qt_examp.cxx
/usr/share/doc/q/examples/swig/qt_examp.h
/usr/share/doc/q/examples/swig/qt_examp.i
/usr/share/doc/q/examples/symbolic.q
/usr/share/doc/q/examples/sys.q
/usr/share/doc/q/examples/testfont.q
/usr/share/doc/q/examples/time.q
/usr/share/doc/q/examples/tk
/usr/share/doc/q/examples/tk/tix.q
/usr/share/doc/q/examples/tk/tk_examp.q
/usr/share/doc/q/examples/tk/tk_test.q
/usr/share/doc/q/examples/unicode.q
/usr/share/doc/q/examples/xml
/usr/share/doc/q/examples/xml/catalog.q
/usr/share/doc/q/examples/xml/catalog.xsl
/usr/share/doc/q/examples/xml/recipes.q
/usr/share/doc/q/examples/xml/recipes.xml
/usr/share/doc/q/examples/xml/recipes.xsl
/usr/share/doc/q/examples/xml/sample.xml
/usr/share/doc/q/examples/xml/xml_examp.q
/usr/share/info/qdoc.info-1.gz
/usr/share/info/qdoc.info-2.gz
/usr/share/info/qdoc.info-3.gz
/usr/share/info/qdoc.info.gz
/usr/share/man/man1/q.1.gz
/usr/share/q
/usr/share/q/lib
/usr/share/q/lib/array.q
/usr/share/q/lib/assert.q
/usr/share/q/lib/bag.q
/usr/share/q/lib/clib.q
/usr/share/q/lib/complex.q
/usr/share/q/lib/cond.q
/usr/share/q/lib/dict.q
/usr/share/q/lib/error.q
/usr/share/q/lib/gdbm.q
/usr/share/q/lib/getopt.q
/usr/share/q/lib/graphics.q
/usr/share/q/lib/hdict.q
/usr/share/q/lib/heap.q
/usr/share/q/lib/math.q
/usr/share/q/lib/octave.q
/usr/share/q/lib/odbc.q
/usr/share/q/lib/prelude.q
/usr/share/q/lib/rational.q
/usr/share/q/lib/reftypes.q
/usr/share/q/lib/set.q
/usr/share/q/lib/sort.q
/usr/share/q/lib/stddecl.q
/usr/share/q/lib/stdlib.q
/usr/share/q/lib/stdtypes.q
/usr/share/q/lib/stream.q
/usr/share/q/lib/string.q
/usr/share/q/lib/swig.q
/usr/share/q/lib/system.q
/usr/share/q/lib/tuple.q
/usr/share/q/lib/typec.q
/usr/share/q/lib/xml.q
/usr/bin/q
/usr/bin/qc
/usr/lib/.build-id
/usr/lib/.build-id/23
/usr/lib/.build-id/23/a6580e030b2c4c4b5198f0dc462d342a470fc2
/usr/lib/.build-id/33
/usr/lib/.build-id/33/982d740b6941c8b31653f5af68960d24d0df69
/usr/lib/.build-id/35
/usr/lib/.build-id/35/9c1bf2c26680af7a055c4cd9f9e3a9c5c1bf03
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/464805ca80b675d5fa56c666801884323e0c56
/usr/lib/.build-id/89
/usr/lib/.build-id/89/5ce4ed7d207795121d48a3e0e9f209e60cc511
/usr/lib/.build-id/89/e62eeb6c943f948e860eed501b3e68eb1bdbf2
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/93ea304856a0d222b9b422d0f41f2fe1bd014a
/usr/lib/.build-id/90
/usr/lib/.build-id/90/55ab4aa4bd8c81ea8199398c0b0ed08cdb8282
/usr/lib/.build-id/95
/usr/lib/.build-id/95/3be12a1de1c0001073c078310d4ecc5fc18495
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/8389c48bd5ab3678e7c4242f8c4490a2d6f219
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/0e87fcf5e8646f34cef12b2821df3d3633f139
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/d27ee19ca8be8339867200847d2e07eb84da11
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/5153862d0bde21d82781849ea20d1b8354997f
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/86245ba9bd6ac7595f1e13832d6aff3eb94b13
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/3b91f173424ecec220fb814d360eefccdfe399
/usr/lib/libq.so.8
/usr/lib/libq.so.8.0.0
/usr/lib/libqint.so.2
/usr/lib/libqint.so.2.0.0
/usr/lib/q
/usr/lib/q/clib.so
/usr/lib/q/gdbm.so
/usr/lib/q/libtool
/usr/lib/q/octave.so
/usr/lib/q/odbc.so
/usr/lib/q/swig.so
/usr/lib/q/system.so
/usr/lib/q/xml.so
/usr/share/doc/q
/usr/share/doc/q/etc
/usr/share/doc/q/etc/AUTHORS
/usr/share/doc/q/etc/COPYING
/usr/share/doc/q/etc/ChangeLog
/usr/share/doc/q/etc/NEWS
/usr/share/doc/q/etc/README
/usr/share/doc/q/etc/README-Clib
/usr/share/doc/q/etc/README-Curl
/usr/share/doc/q/etc/README-DXL
/usr/share/doc/q/etc/README-Gdbm
/usr/share/doc/q/etc/README-Magick
/usr/share/doc/q/etc/README-ODBC
/usr/share/doc/q/etc/README-Octave
/usr/share/doc/q/etc/README-SWIG
/usr/share/doc/q/etc/README-Tk
/usr/share/doc/q/etc/README-XML
/usr/share/doc/q/etc/q-mode.el
/usr/share/doc/q/etc/q.vim
/usr/share/doc/q/etc/q.xml
/usr/share/doc/q/etc/qexitrc
/usr/share/doc/q/etc/qinitrc
/usr/share/doc/q/examples
/usr/share/doc/q/examples/basics.q
/usr/share/doc/q/examples/cgi.q
/usr/share/doc/q/examples/creverse.c
/usr/share/doc/q/examples/creverse.q
/usr/share/doc/q/examples/csv.q
/usr/share/doc/q/examples/ctype.c
/usr/share/doc/q/examples/ctype.q
/usr/share/doc/q/examples/curl
/usr/share/doc/q/examples/curl/curltest.q
/usr/share/doc/q/examples/daemon.q
/usr/share/doc/q/examples/dfs.q
/usr/share/doc/q/examples/dgram.q
/usr/share/doc/q/examples/dnf.q
/usr/share/doc/q/examples/dxl
/usr/share/doc/q/examples/dxl/dxl_sample.cfg
/usr/share/doc/q/examples/dxl/dxl_sample.net
/usr/share/doc/q/examples/dxl/dxl_sample.q
/usr/share/doc/q/examples/dxl/dxl_simple.q
/usr/share/doc/q/examples/dxl/sombrero.cfg
/usr/share/doc/q/examples/dxl/sombrero.dx
/usr/share/doc/q/examples/dxl/sombrero.net
/usr/share/doc/q/examples/dxl/sombrero.q
/usr/share/doc/q/examples/except.q
/usr/share/doc/q/examples/factor.q
/usr/share/doc/q/examples/fcntl.q
/usr/share/doc/q/examples/fibs.q
/usr/share/doc/q/examples/fibs.sh
/usr/share/doc/q/examples/fixpt.q
/usr/share/doc/q/examples/gamma.q
/usr/share/doc/q/examples/gdbm
/usr/share/doc/q/examples/gdbm/gdbm_dict.q
/usr/share/doc/q/examples/gdbm/testdb.q
/usr/share/doc/q/examples/getpass.q
/usr/share/doc/q/examples/globexamp.q
/usr/share/doc/q/examples/graph.q
/usr/share/doc/q/examples/grid.q
/usr/share/doc/q/examples/hashed.q
/usr/share/doc/q/examples/huffman.q
/usr/share/doc/q/examples/lambda.q
/usr/share/doc/q/examples/menu.q
/usr/share/doc/q/examples/newton.q
/usr/share/doc/q/examples/odbc
/usr/share/doc/q/examples/odbc/odbc_examp.q
/usr/share/doc/q/examples/pipes.q
/usr/share/doc/q/examples/popen2.q
/usr/share/doc/q/examples/primetest.q
/usr/share/doc/q/examples/pty.q
/usr/share/doc/q/examples/qint.c
/usr/share/doc/q/examples/queens.q
/usr/share/doc/q/examples/queens2.q
/usr/share/doc/q/examples/queens3.q
/usr/share/doc/q/examples/queue.q
/usr/share/doc/q/examples/regexamp.q
/usr/share/doc/q/examples/rlexamp.q
/usr/share/doc/q/examples/rot13.q
/usr/share/doc/q/examples/searchtree.q
/usr/share/doc/q/examples/select.q
/usr/share/doc/q/examples/signal.q
/usr/share/doc/q/examples/streams.q
/usr/share/doc/q/examples/swig
/usr/share/doc/q/examples/swig/example.c
/usr/share/doc/q/examples/swig/example.i
/usr/share/doc/q/examples/swig/qt_examp.cxx
/usr/share/doc/q/examples/swig/qt_examp.h
/usr/share/doc/q/examples/swig/qt_examp.i
/usr/share/doc/q/examples/symbolic.q
/usr/share/doc/q/examples/sys.q
/usr/share/doc/q/examples/testfont.q
/usr/share/doc/q/examples/time.q
/usr/share/doc/q/examples/tk
/usr/share/doc/q/examples/tk/tix.q
/usr/share/doc/q/examples/tk/tk_examp.q
/usr/share/doc/q/examples/tk/tk_test.q
/usr/share/doc/q/examples/unicode.q
/usr/share/doc/q/examples/xml
/usr/share/doc/q/examples/xml/catalog.q
/usr/share/doc/q/examples/xml/catalog.xsl
/usr/share/doc/q/examples/xml/recipes.q
/usr/share/doc/q/examples/xml/recipes.xml
/usr/share/doc/q/examples/xml/recipes.xsl
/usr/share/doc/q/examples/xml/sample.xml
/usr/share/doc/q/examples/xml/xml_examp.q
/usr/share/info/qdoc.info-1.gz
/usr/share/info/qdoc.info-2.gz
/usr/share/info/qdoc.info-3.gz
/usr/share/info/qdoc.info.gz
/usr/share/man/man1/q.1.gz
/usr/share/q
/usr/share/q/lib
/usr/share/q/lib/array.q
/usr/share/q/lib/assert.q
/usr/share/q/lib/bag.q
/usr/share/q/lib/clib.q
/usr/share/q/lib/complex.q
/usr/share/q/lib/cond.q
/usr/share/q/lib/dict.q
/usr/share/q/lib/error.q
/usr/share/q/lib/gdbm.q
/usr/share/q/lib/getopt.q
/usr/share/q/lib/graphics.q
/usr/share/q/lib/hdict.q
/usr/share/q/lib/heap.q
/usr/share/q/lib/math.q
/usr/share/q/lib/octave.q
/usr/share/q/lib/odbc.q
/usr/share/q/lib/prelude.q
/usr/share/q/lib/rational.q
/usr/share/q/lib/reftypes.q
/usr/share/q/lib/set.q
/usr/share/q/lib/sort.q
/usr/share/q/lib/stddecl.q
/usr/share/q/lib/stdlib.q
/usr/share/q/lib/stdtypes.q
/usr/share/q/lib/stream.q
/usr/share/q/lib/string.q
/usr/share/q/lib/swig.q
/usr/share/q/lib/system.q
/usr/share/q/lib/tuple.q
/usr/share/q/lib/typec.q
/usr/share/q/lib/xml.q

References

Summary

In this tutorial we learn how to install q on Fedora 34 using yum and dnf.