Ask Your Question
0

install Clang 3.4 on Fedora 22

asked 2018-08-31 04:31:09 -0500

I am trying to install an old version of clang on my Fedora machine. Specifically, if I do with the command:

dnf install clang

the system installs a newer version:

[localhost]$ clang --version

clang version 3.5.0 (tags/RELEASE_350/final)

How can I install the previous version 3.4?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2018-08-31 13:06:00 -0500

fcomida gravatar image

To view all versions of a package in your enabled repositories, use:

dnf --showduplicates list <package>

You can then downgrade to a specific version:

dnf downgrade clang-3.4.0-1.fc22

edit flag offensive delete link more

Comments

Sorry, no support for dnf or yum on fc22. Too old.

villykruse gravatar imagevillykruse ( 2018-08-31 13:52:10 -0500 )edit

Sorry, dnf replaced yum since fç22 and I think yum is in Fedora since Fedora Core 1

fcomida gravatar imagefcomida ( 2018-08-31 15:04:41 -0500 )edit
0

answered 2018-11-17 21:11:59 -0500

carlwgeorge gravatar image

First off, Fedora 22 went EOL on 2016-07-19 and is no longer receiving security fixes. You should upgrade to a supported version (currently F28 and F29).

That said, Fedora 28 currently has clang 6 and Fedora 29 has clang 7. I would first try to use those versions, but if for some reason you are absolutely restricted to clang 3.4 you could take the Fedora 21 llvm SRPM (which is 3.4) and try to rebuild it on the version of Fedora you are running.

Alternatively, you could switch to using CentOS or RHEL 6 or 7, and then use clang 3.4.2 from EPEL.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-08-31 04:31:09 -0500

Seen: 295 times

Last updated: Nov 17 '18