How To Install astyle on Fedora 34
Introduction
In this tutorial we learn how to install astyle
on Fedora 34.
What is astyle
Artistic Style is a source code indenter, source code formatter, and source code beautifier for the C, C++, C# and Java programming languages. astyle 3.1 12.fc34 x86_64 261 k astyle-3.1-12.fc34.src.rpm fedora Source code formatter for C-like programming languages http LGPLv3+ Artistic Style is a source code indenter, source code formatter, and source code beautifier for the C, C++, C# and Java programming languages.
We can use yum
or dnf
to install astyle
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install astyle.
Install astyle 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 astyle
using dnf
by running the following command:
sudo dnf -y install astyle
Install astyle 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 astyle
using yum
by running the following command:
sudo yum -y install astyle
How To Uninstall astyle on Fedora 34
To uninstall only the astyle
package we can use the following command:
sudo dnf remove astyle
astyle Package Contents on Fedora 34
/usr/bin/astyle
/usr/lib/.build-id
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/972beba432d7e5a938effef55225c749c622fc
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/7e3d47361303e710471aff5a079a30edaa086b
/usr/lib64/libastyle.so.3
/usr/lib64/libastyle.so.3.1.0
/usr/share/doc/astyle
/usr/share/doc/astyle/astyle.html
/usr/share/doc/astyle/install.html
/usr/share/doc/astyle/news.html
/usr/share/doc/astyle/notes.html
/usr/bin/astyle
/usr/lib/.build-id
/usr/lib/.build-id/da
/usr/lib/.build-id/da/f1f2bf760cae2c90895458ba094eeed2407d69
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/a5bb0423ae443091967569a39cf82708263339
/usr/lib/libastyle.so.3
/usr/lib/libastyle.so.3.1.0
/usr/share/doc/astyle
/usr/share/doc/astyle/astyle.html
/usr/share/doc/astyle/install.html
/usr/share/doc/astyle/news.html
/usr/share/doc/astyle/notes.html
References
- [astyle website](http://astyle.sourceforge.net/ http://astyle.sourceforge.net/)
Summary
In this tutorial we learn how to install astyle
on Fedora 34 using yum and dnf.