For some reason when I run yum to get cmake it will install an older version. Could it be because my repo list is not complete? I'm on CentOS 6 using a minimal desktop install from the non-net install CD. Could anyone give me a repo link or something?Same thing happens on Scientific Linux.I would take compiling it myself as a last resort because I'm trying to make yum install cmake work in a bash script.
yum installs an old version of cmake
centos;yum;repository;scientific linux
You don't say but what versions are you getting and what versions do you expect?What repositories do I have?You can find out what repositories your system is configured to query using this command:$ yum repolist | expandLoaded plugins: fastestmirror, priorities, refresh-packagekitLoading mirror speeds from cached hostfile * base: centos.mirror.constant.com * epel: mirror.steadfast.net * extras: mirror.symnds.com * updates: bay.uchicago.edu77 packages excluded due to repository priority protectionsrepo id         repo name                                               statusbase            CentOS-6 - Base                                         6,297+70epel            Extra Packages for Enterprise Linux 6 - x86_64            10,246extras          CentOS-6 - Extras                                            7+7updates         CentOS-6 - Updates                                           314repolist: 16,864Package infoYou can query any package whether it's installed or not using yum info <pkg>.$ yum info cmakeLoaded plugins: fastestmirror, priorities, refresh-packagekitLoading mirror speeds from cached hostfile * base: centos.mirror.constant.com * epel: mirror.steadfast.net * extras: mirror.symnds.com * updates: bay.uchicago.edu77 packages excluded due to repository priority protectionsInstalled PackagesName        : cmakeArch        : x86_64Version     : 2.6.4Release     : 5.el6Size        : 18 MRepo        : installedFrom repo   : baseSummary     : Cross-platform make systemURL         : http://www.cmake.orgLicense     : BSDDescription : CMake is used to control the software compilation process using simple            : platform and compiler independent configuration files. CMake generates            : native makefiles and workspaces that can be used in the compiler            : environment of your choice. CMake is quite sophisticated: it is possible            : to support complex environments requiring system configuration, pre-processor            : generation, code generation, and template instantiation.Package's URLYou can find out where a RPM is being downloaded from using the repoquery command.$ repoquery --location cmakehttp://centos.mirrors.hoobly.com/6.5/os/x86_64/Packages/cmake-2.6.4-5.el6.x86_64.rpmWhich is part of this repository:$ repoquery -i cmake | grep ReposRepository  : baseSo this is a base repository to the CentOS distro that's providing this package.What other repositories have it?You can query what repositories contain a specific package (at least most of the major repos) using pkgs.org.http://pkgs.org/search/?query=cmake&type=smartAccording to this list the EPEL repo has the latest version pre-built. The version of this package is as follows: cmake 28-2.8.11.2-1.