How To Install clazy on Fedora 34
Introduction
In this tutorial we learn how to install clazy
on Fedora 34.
What is clazy
clazy is a compiler plugin which allows clang to understand Qt semantics. You get more than 50 Qt related compiler warnings, ranging from unneeded memory allocations to misusage of API, including fix-its for automatic refactoring.
We can use yum
or dnf
to install clazy
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install clazy.
Install clazy 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 clazy
using dnf
by running the following command:
sudo dnf -y install clazy
Install clazy 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 clazy
using yum
by running the following command:
sudo yum -y install clazy
How To Uninstall clazy on Fedora 34
To uninstall only the clazy
package we can use the following command:
sudo dnf remove clazy
clazy Package Contents on Fedora 34
/usr/bin/clazy
/usr/bin/clazy-standalone
/usr/lib/.build-id
/usr/lib/.build-id/11
/usr/lib/.build-id/11/bef1e007f3bb692e49a1e636d6c0a19559d5be
/usr/lib/.build-id/64
/usr/lib/.build-id/64/460a17f466d903788ef818b78a0d2bdceab3d7
/usr/lib64/ClazyPlugin.so
/usr/share/doc/clazy
/usr/share/doc/clazy/COPYING-LGPL2.txt
/usr/share/doc/clazy/HOWTO
/usr/share/doc/clazy/README.md
/usr/share/doc/clazy/checks.json
/usr/share/doc/clazy/level0
/usr/share/doc/clazy/level0/README-connect-by-name.md
/usr/share/doc/clazy/level0/README-connect-non-signal.md
/usr/share/doc/clazy/level0/README-connect-not-normalized.md
/usr/share/doc/clazy/level0/README-container-anti-pattern.md
/usr/share/doc/clazy/level0/README-empty-qstringliteral.md
/usr/share/doc/clazy/level0/README-fully-qualified-moc-types.md
/usr/share/doc/clazy/level0/README-lambda-in-connect.md
/usr/share/doc/clazy/level0/README-lambda-unique-connection.md
/usr/share/doc/clazy/level0/README-lowercase-qml-type-name.md
/usr/share/doc/clazy/level0/README-mutable-container-key.md
/usr/share/doc/clazy/level0/README-overloaded-signal.md
/usr/share/doc/clazy/level0/README-qcolor-from-literal.md
/usr/share/doc/clazy/level0/README-qdatetime-utc.md
/usr/share/doc/clazy/level0/README-qenums.md
/usr/share/doc/clazy/level0/README-qfileinfo-exists.md
/usr/share/doc/clazy/level0/README-qgetenv.md
/usr/share/doc/clazy/level0/README-qmap-with-pointer-key.md
/usr/share/doc/clazy/level0/README-qstring-arg.md
/usr/share/doc/clazy/level0/README-qstring-comparison-to-implicit-char.md
/usr/share/doc/clazy/level0/README-qstring-insensitive-allocation.md
/usr/share/doc/clazy/level0/README-qstring-ref.md
/usr/share/doc/clazy/level0/README-qt-macros.md
/usr/share/doc/clazy/level0/README-strict-iterators.md
/usr/share/doc/clazy/level0/README-temporary-iterator.md
/usr/share/doc/clazy/level0/README-unused-non-trivial-variable.md
/usr/share/doc/clazy/level0/README-writing-to-temporary.md
/usr/share/doc/clazy/level0/README-wrong-qevent-cast.md
/usr/share/doc/clazy/level0/README-wrong-qglobalstatic.md
/usr/share/doc/clazy/level1
/usr/share/doc/clazy/level1/README-auto-unexpected-qstringbuilder.md
/usr/share/doc/clazy/level1/README-child-event-qobject-cast.md
/usr/share/doc/clazy/level1/README-connect-3arg-lambda.md
/usr/share/doc/clazy/level1/README-const-signal-or-slot.md
/usr/share/doc/clazy/level1/README-detaching-temporary.md
/usr/share/doc/clazy/level1/README-foreach.md
/usr/share/doc/clazy/level1/README-incorrect-emit.md
/usr/share/doc/clazy/level1/README-inefficient-qlist-soft.md
/usr/share/doc/clazy/level1/README-install-event-filter.md
/usr/share/doc/clazy/level1/README-non-pod-global-static.md
/usr/share/doc/clazy/level1/README-overridden-signal.md
/usr/share/doc/clazy/level1/README-post-event.md
/usr/share/doc/clazy/level1/README-qdeleteall.md
/usr/share/doc/clazy/level1/README-qhash-namespace.md
/usr/share/doc/clazy/level1/README-qlatin1string-non-ascii.md
/usr/share/doc/clazy/level1/README-qproperty-without-notify.md
/usr/share/doc/clazy/level1/README-qstring-left.md
/usr/share/doc/clazy/level1/README-range-loop.md
/usr/share/doc/clazy/level1/README-returning-data-from-temporary.md
/usr/share/doc/clazy/level1/README-rule-of-two-soft.md
/usr/share/doc/clazy/level1/README-skipped-base-method.md
/usr/share/doc/clazy/level1/README-virtual-signal.md
/usr/share/doc/clazy/level2
/usr/share/doc/clazy/level2/README-base-class-event.md
/usr/share/doc/clazy/level2/README-copyable-polymorphic.md
/usr/share/doc/clazy/level2/README-ctor-missing-parent-argument.md
/usr/share/doc/clazy/level2/README-function-args-by-ref.md
/usr/share/doc/clazy/level2/README-function-args-by-value.md
/usr/share/doc/clazy/level2/README-global-const-char-pointer.md
/usr/share/doc/clazy/level2/README-implicit-casts.md
/usr/share/doc/clazy/level2/README-missing-qobject-macro.md
/usr/share/doc/clazy/level2/README-missing-typeinfo.md
/usr/share/doc/clazy/level2/README-old-style-connect.md
/usr/share/doc/clazy/level2/README-qstring-allocations.md
/usr/share/doc/clazy/level2/README-returning-void-expression.md
/usr/share/doc/clazy/level2/README-rule-of-three.md
/usr/share/doc/clazy/level2/README-static-pmf.md
/usr/share/doc/clazy/level2/README-virtual-call-ctor.md
/usr/share/doc/clazy/manuallevel
/usr/share/doc/clazy/manuallevel/README-assert-with-side-effects.md
/usr/share/doc/clazy/manuallevel/README-container-inside-loop.md
/usr/share/doc/clazy/manuallevel/README-detaching-member.md
/usr/share/doc/clazy/manuallevel/README-heap-allocated-small-trivial-type.md
/usr/share/doc/clazy/manuallevel/README-ifndef-define-typo.md
/usr/share/doc/clazy/manuallevel/README-inefficient-qlist.md
/usr/share/doc/clazy/manuallevel/README-isempty-vs-count.md
/usr/share/doc/clazy/manuallevel/README-jni-signatures.md
/usr/share/doc/clazy/manuallevel/README-qhash-with-char-pointer-key.md
/usr/share/doc/clazy/manuallevel/README-qproperty-type-mismatch.md
/usr/share/doc/clazy/manuallevel/README-qrequiredresult-candidates.md
/usr/share/doc/clazy/manuallevel/README-qstring-varargs.md
/usr/share/doc/clazy/manuallevel/README-qt-keywords.md
/usr/share/doc/clazy/manuallevel/README-qt4-qstring-from-array.md
/usr/share/doc/clazy/manuallevel/README-qt6-deprecated-api-fixes.md
/usr/share/doc/clazy/manuallevel/README-qt6-fwd-fixes.md
/usr/share/doc/clazy/manuallevel/README-qt6-header-fixes.md
/usr/share/doc/clazy/manuallevel/README-qt6-qhash-signature.md
/usr/share/doc/clazy/manuallevel/README-qt6-qlatin1stringchar-to-u.md
/usr/share/doc/clazy/manuallevel/README-qvariant-template-instantiation.md
/usr/share/doc/clazy/manuallevel/README-raw-environment-function.md
/usr/share/doc/clazy/manuallevel/README-reserve-candidates.md
/usr/share/doc/clazy/manuallevel/README-signal-with-return-value.md
/usr/share/doc/clazy/manuallevel/README-thread-with-slots.md
/usr/share/doc/clazy/manuallevel/README-tr-non-literal.md
/usr/share/doc/clazy/manuallevel/README-unneeded-cast.md
/usr/share/doc/clazy/manuallevel/README-use-chrono-in-qtimer.md
/usr/share/licenses/clazy
/usr/share/licenses/clazy/COPYING-LGPL2.txt
/usr/share/man/man1/clazy.1.gz
/usr/share/metainfo/org.kde.clazy.metainfo.xml
/usr/bin/clazy
/usr/bin/clazy-standalone
/usr/lib/.build-id
/usr/lib/.build-id/62
/usr/lib/.build-id/62/f4737ac5ea762e7fb7604db9672b6366708e37
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/8a4e6d412d6e01efc4880fba38c7cf0fa2da88
/usr/lib64/ClazyPlugin.so
/usr/share/doc/clazy
/usr/share/doc/clazy/COPYING-LGPL2.txt
/usr/share/doc/clazy/HOWTO
/usr/share/doc/clazy/README.md
/usr/share/doc/clazy/checks.json
/usr/share/doc/clazy/level0
/usr/share/doc/clazy/level0/README-connect-by-name.md
/usr/share/doc/clazy/level0/README-connect-non-signal.md
/usr/share/doc/clazy/level0/README-connect-not-normalized.md
/usr/share/doc/clazy/level0/README-container-anti-pattern.md
/usr/share/doc/clazy/level0/README-empty-qstringliteral.md
/usr/share/doc/clazy/level0/README-fully-qualified-moc-types.md
/usr/share/doc/clazy/level0/README-lambda-in-connect.md
/usr/share/doc/clazy/level0/README-lambda-unique-connection.md
/usr/share/doc/clazy/level0/README-lowercase-qml-type-name.md
/usr/share/doc/clazy/level0/README-mutable-container-key.md
/usr/share/doc/clazy/level0/README-overloaded-signal.md
/usr/share/doc/clazy/level0/README-qcolor-from-literal.md
/usr/share/doc/clazy/level0/README-qdatetime-utc.md
/usr/share/doc/clazy/level0/README-qenums.md
/usr/share/doc/clazy/level0/README-qfileinfo-exists.md
/usr/share/doc/clazy/level0/README-qgetenv.md
/usr/share/doc/clazy/level0/README-qmap-with-pointer-key.md
/usr/share/doc/clazy/level0/README-qstring-arg.md
/usr/share/doc/clazy/level0/README-qstring-comparison-to-implicit-char.md
/usr/share/doc/clazy/level0/README-qstring-insensitive-allocation.md
/usr/share/doc/clazy/level0/README-qstring-ref.md
/usr/share/doc/clazy/level0/README-qt-macros.md
/usr/share/doc/clazy/level0/README-strict-iterators.md
/usr/share/doc/clazy/level0/README-temporary-iterator.md
/usr/share/doc/clazy/level0/README-unused-non-trivial-variable.md
/usr/share/doc/clazy/level0/README-writing-to-temporary.md
/usr/share/doc/clazy/level0/README-wrong-qevent-cast.md
/usr/share/doc/clazy/level0/README-wrong-qglobalstatic.md
/usr/share/doc/clazy/level1
/usr/share/doc/clazy/level1/README-auto-unexpected-qstringbuilder.md
/usr/share/doc/clazy/level1/README-child-event-qobject-cast.md
/usr/share/doc/clazy/level1/README-connect-3arg-lambda.md
/usr/share/doc/clazy/level1/README-const-signal-or-slot.md
/usr/share/doc/clazy/level1/README-detaching-temporary.md
/usr/share/doc/clazy/level1/README-foreach.md
/usr/share/doc/clazy/level1/README-incorrect-emit.md
/usr/share/doc/clazy/level1/README-inefficient-qlist-soft.md
/usr/share/doc/clazy/level1/README-install-event-filter.md
/usr/share/doc/clazy/level1/README-non-pod-global-static.md
/usr/share/doc/clazy/level1/README-overridden-signal.md
/usr/share/doc/clazy/level1/README-post-event.md
/usr/share/doc/clazy/level1/README-qdeleteall.md
/usr/share/doc/clazy/level1/README-qhash-namespace.md
/usr/share/doc/clazy/level1/README-qlatin1string-non-ascii.md
/usr/share/doc/clazy/level1/README-qproperty-without-notify.md
/usr/share/doc/clazy/level1/README-qstring-left.md
/usr/share/doc/clazy/level1/README-range-loop.md
/usr/share/doc/clazy/level1/README-returning-data-from-temporary.md
/usr/share/doc/clazy/level1/README-rule-of-two-soft.md
/usr/share/doc/clazy/level1/README-skipped-base-method.md
/usr/share/doc/clazy/level1/README-virtual-signal.md
/usr/share/doc/clazy/level2
/usr/share/doc/clazy/level2/README-base-class-event.md
/usr/share/doc/clazy/level2/README-copyable-polymorphic.md
/usr/share/doc/clazy/level2/README-ctor-missing-parent-argument.md
/usr/share/doc/clazy/level2/README-function-args-by-ref.md
/usr/share/doc/clazy/level2/README-function-args-by-value.md
/usr/share/doc/clazy/level2/README-global-const-char-pointer.md
/usr/share/doc/clazy/level2/README-implicit-casts.md
/usr/share/doc/clazy/level2/README-missing-qobject-macro.md
/usr/share/doc/clazy/level2/README-missing-typeinfo.md
/usr/share/doc/clazy/level2/README-old-style-connect.md
/usr/share/doc/clazy/level2/README-qstring-allocations.md
/usr/share/doc/clazy/level2/README-returning-void-expression.md
/usr/share/doc/clazy/level2/README-rule-of-three.md
/usr/share/doc/clazy/level2/README-static-pmf.md
/usr/share/doc/clazy/level2/README-virtual-call-ctor.md
/usr/share/doc/clazy/manuallevel
/usr/share/doc/clazy/manuallevel/README-assert-with-side-effects.md
/usr/share/doc/clazy/manuallevel/README-container-inside-loop.md
/usr/share/doc/clazy/manuallevel/README-detaching-member.md
/usr/share/doc/clazy/manuallevel/README-heap-allocated-small-trivial-type.md
/usr/share/doc/clazy/manuallevel/README-ifndef-define-typo.md
/usr/share/doc/clazy/manuallevel/README-inefficient-qlist.md
/usr/share/doc/clazy/manuallevel/README-isempty-vs-count.md
/usr/share/doc/clazy/manuallevel/README-jni-signatures.md
/usr/share/doc/clazy/manuallevel/README-qhash-with-char-pointer-key.md
/usr/share/doc/clazy/manuallevel/README-qproperty-type-mismatch.md
/usr/share/doc/clazy/manuallevel/README-qrequiredresult-candidates.md
/usr/share/doc/clazy/manuallevel/README-qstring-varargs.md
/usr/share/doc/clazy/manuallevel/README-qt-keywords.md
/usr/share/doc/clazy/manuallevel/README-qt4-qstring-from-array.md
/usr/share/doc/clazy/manuallevel/README-qt6-qlatin1string-to-u.md
/usr/share/doc/clazy/manuallevel/README-qvariant-template-instantiation.md
/usr/share/doc/clazy/manuallevel/README-raw-environment-function.md
/usr/share/doc/clazy/manuallevel/README-reserve-candidates.md
/usr/share/doc/clazy/manuallevel/README-signal-with-return-value.md
/usr/share/doc/clazy/manuallevel/README-thread-with-slots.md
/usr/share/doc/clazy/manuallevel/README-tr-non-literal.md
/usr/share/doc/clazy/manuallevel/README-unneeded-cast.md
/usr/share/licenses/clazy
/usr/share/licenses/clazy/COPYING-LGPL2.txt
/usr/share/man/man1/clazy.1.gz
/usr/share/metainfo/org.kde.clazy.metainfo.xml
References
Summary
In this tutorial we learn how to install clazy
on Fedora 34 using yum and dnf.