Install latest versions in Centos 7/RHEL 7 - centos7

I'm having trouble with installing the latest versions for many packages, for instance vim.
There is version 8.1 in their website however when I run yum search vim the latest version I can find is vim-enhanced:7.4.160.
I understand the stability and security issues with upgrading the versions but being used to a rolling-release distro (archlinux) I'd like to have the latest versions for my development tools.
I tried enabling more repositories such as: elrepol, epel, elrepo-extras but they don't seem to have the latest versions for the packages too.

This is what (Red Hat) Software Collections and Developer Toolset exist for. Though they don't include Vim, there's a lot of developer tooling (compilers, dynamic languages, databases, ...) in much fresher versions than in default repositories.
Default packages and software collections packages can be installed and used alongside each other without conflicts.
Check out:
RHEL: Red Hat Software Collections & Red Hat Developer Toolset
CentOS: Software Collections (also at softwarecollections.org), which includes Developer Toolset

Related

how to install qt specific version libraries

I need to install qt libraries 5.9 in Ubuntu 20.04.
sudo apt install qt5-default
will bring the latest qt release which I don't want.
I need specific qt libraries for compatibility reasons. I have applications running in the field where qt libraries are pre installed as dinamic libraries in the targets and can must be kept unchanged.
Ubuntu only offers the versions available in their repos.
If you want a specific version you can download the Qt installer (https://www.qt.io/download) and search for the version you need there. You'll find a list of builds available for download.
However, not all versions are available in their repos as well. In that case you'll have to build the version you need yourself I guess.

eclipse not able to install CDT (c++ development tools) due to some dependences not satisfied

I joined a new firm which has very restrict policy regarding using 3rd party software. There is a company certified Eclipse foundation IDE 4.16 installed on my Windows 10 (64 bits).
When I tried to install CDT (for C++ development) from Help-->Install New Software, I got following errors (sorry, I am not able to copy/paste, ).
"Cannot complete the install because soem dependencies are not satifiable
Software being installed: a.jre.javase 9.0.0
Software being intalled: C/C++ Development Tools 9.11.1.202006011430 (org.eclipse.cdt.feature.group 9.11.1.202006011430)
Cannot satisfy dependency:
From: C/C++ Development Tools 9.11.1.202006011430 [org.eclipse.cdt.feature.group 9.11.1.202006011430]
To: org.eclipse.equinox.p2.iu;org.eclipse.cdt.platform.feature.group [9.11.1.202006011430, 9.11.1.202006011430]
there are more, But I am tired of typing those error message.
How can I install p2 from Help --> Install New Software ? I tried to search p2, it gives a lot packages, when I tried to install all of them (as I don't know which one is exactly depended by CDT, I got another bunch of errors. Super frustrated !

Install older gcc/g++ versions in CentOS 8

I've been struggling with this for the past 2h. In CentOS 8 I can't find the devtoolset packages to install older gcc/g++ versions. There is no longer a scl repo for CentOS 8. I need gcc/g++ 4.9x installed along the current gcc/g++ 8.x and I need to be able to switch between the two. This was extremely easy to set up in Ubuntu, not the case in CentOS and the documentation is non-existent or I had trouble finding it.
If you wish to install an older gcc than the distro provides, you will need to compile it for source.
There is some guidance below on how to download and build an old GCC
https://bytefreaks.net/gnulinux/downgrade-gcc-on-centos-7-0-64bit-to-version-4-8-2
Found a solid path that has automated compiling and packaging gcc, as well as a guide:
Guide:
https://bobsteagall.com/2017/12/30/gcc-builder/
Github repo:
https://github.com/BobSteagall/gcc-builder
I won't copy paste what's in this person's guide as they deserve the credit. However, here's a summary of the steps:
Install your prereqs (rpm build tools, devtools for bootstrapping your environment).
Clone the repo.
Checkout a branch in the repo like the major version of GCC you want (e.g. gcc7).
In the repo, edit gcc-build-vars.sh such that it points to a version of GCC you want from http://gnu.mirror.constant.com/gcc/.
Perform the build with: ./build-gcc.sh -T | tee build.log.
Stage it: ./stage-gcc.sh.
Package it: (./pack-gcc.sh or ./make-gcc-rpm.sh -v).

What is the best way to have multiple g++ toolchains installed on Debian Jessie

I'm pretty new to linux, and I want to have installed multiple toolchains versions on my machine for testing purposes, I've read many documents on the internet refering to how to install test/experimental/unstable packages to get very new compilers packages (i.e. g++-6), but after setting Debian to find packages from test/experimental/unstable channels and install g++-6 my machine crashed, so as a new Linux user I would like to get your help to understand what is the recommended way of doing this, in my case I would like to have an easy way of testing my code against g++ (4.9, 5 and 6).
On Windows I used to download a zip package from a daily build version of mingw including g++ 5 or 6 and just setted the IDE to look for the toolchain in each folder, is that possible on Linux?
Mixing up stable/testing/unstable branch of debian is not easy and i wouldn't recommend to do it. What you could do is to download diractly the tarball, or clone the cvs and compile the compiler on your own, having each version in their own directory.
The different releases can be found here, for example.

Current Cygwin version is not supported by Clion, how to install an earlier version of it?

I am trying to get my Clion 1.1.1 to work with Cygwin. I've installed Cygwin using its setup-x86_64.exe installer. but when I set Cygwin path in Clion's toolchains dialog, it says:
Environment: Cygwin; current version is 2.2.1; supported version range is 1.7.32-2.0.x
On the Cygwin website there is a snapshots page, in which packages are sorted by date (not version) and in faq page it says:
If you are looking for the version number for the whole Cygwin release, there is none. Each package in the Cygwin release has its own version.
So, if there is no version number for whole Cygwin release, what is Clion complaining about?
and if there is, how can I install an earlier version?
afaik, you'll either need an older installer (and some luck on the repos) or someone's older package directory and installer. All recent installers only go back one release which won't be enough to get you back in line with Clion's requirement.
Might also be worth reaching out to Clion and asking them when support for the recent versions is coming out.