Hot answers tagged


These tools all install software into your system, but are working on different levels. ./configure && make install Running ./configure && make install builds and installs the libraries or executables directly from the source code. The make install step basically just copies the final files into your system. Many sources come with a ...


Have you tried: yum install gcc-c++


yum doesn't have that capability. Use the repoquery tool from the yum-utils package instead. repoquery --requires <package> OR to also see which additional RPM packages are needed to satisfy the dependencies, use --resolve repoquery --requires --resolve <package>


yum repolist yum repolist enabled shows all enabled repositories. These two commands are identical. yum repolist disabled shows disabled repositories. yum repolist all shows everything.


Tru Huynh of has built the redhat developer toolset 1.1, for centos and it contains gcc 4.7.2 So you could simply use his repo and install just gcc, instantly. cd /etc/yum.repos.d wget yum --enablerepo=testing-1.1-devtools-6 install devtoolset-1.1-gcc devtoolset-1.1-gcc-c++ This will ...


All of this did not work with me. Using CentOS and yum. yum hangs without an error message, at least, so it appears. Pressing Ctrl+C does not work (pressing it again and again and again does). Several things need to be checked: - are the repositories OK? - is networking OK? - are the yum and rpm databases OK? So, first start with the easy stuff - clean ...


Here is how to get devtoolset-2 (including gcc 4.8.1) This was taken from wget -O /etc/yum.repos.d/devtools-2.repo yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++ Known issues: unsigned packages CentOS-6 devtoolset-2 needs ...


I believe you can find what you are looking for in the Yum log files, located in /var/log/yum.log


There is new version of devtoolset 2.0. Nice people from Cern working on Scientific Linux created an open version: If you use CentOS (not Scientific Linux), then you will have to import their GPG key from here using: rpm --import Enjoy!


use deplist command, yum deplist <package> from yum's manual: Produces a list of all dependencies and what packages provide those dependencies for the given packages. Update for dnf To do the same thing with dnf, we can do dnf repoquery --requires <package> as man yum2dnf said: Alternative to Yum deplist command to find out ...


You can use: yum downgrade NetworkManager NetworkManager-gnome NetworkManager-glib


You may have a DNS issue. Try to ensure you can resolve DNS records locally: nslookup If you get an IP back from that command, you should be OK for DNS. Try then removing the fastestmirror cache and re-running your yum command: rm -f /var/cache/yum/timedhosts.txt


You can place files in /etc/apt/sources.list.d. This is described in the man page for sources.list (type man sources.list). The man page says: SOURCES.LIST.D The /etc/apt/sources.list.d directory provides a way to add sources.list entries in separate files. The format is the same as for the regular sources.list file. File names need to end with ....


From the manpage: MISC Specifying package names A package can be referred to for install,update,list,remove etc with any of the following: name name.arch name-ver name-ver-rel name-ver-rel.arch name-epoch:ver-rel.arch epoch:name-ver-rel.arch For ...


The rpm cache directory location can be found in /etc/yum.conf cachedir=/var/cache/yum/$basearch/$releasever You should change the $basearch and $releasever, values based on your red hat release version. If you want to keep the rpm cache after installation the keep cache value should be set 1 in: /etc/yum.conf set keepcache=1


# 1. Install a package with repository for your system: # RHEL 6: `yum-config-manager --enable rhel-server-rhscl-6-rpmss` # RHEL 7: `yum-config-manager --enable rhel-server-rhscl-7-rpms` $ sudo yum install centos-release-scl # On CentOS 6/7+, install package centos-release-scl available in CentOS repository # 2. Install the collection: $ sudo yum install ...


You can run "yum clean expire-cache" which is much more efficient way to tell yum to check the repos. ... the other thing to do would be to change the metadata_expire value for the local repo. (see man yum.conf).


dmckee's answer works perfectly well. $ yum list installed also works. No special privileges required.


I have not been able to get this to work using environment variables as you describe here. Yum does support proxies itself, however, and you should be able to do something like this: proxy=http://proxy:port Into yum.conf and then adding proxy=_none_ Into the repo definitions you don't want to access via the global proxy. This is detailed (albeit ...


Long ago I would have just used $ rpm -qa and possibly piped it through more. Looks like is still works.


The yum command "whatprovides" accepts wildcards. If you're searching for the package that provides as certain file or executable and do not know its full path, use "yum whatprovides */filename". $ yum whatprovides */ls coreutils-5.97-23.el5_4.2.x86_64 : The GNU core utilities: a set of tools : commonly used in shell ...


Trying to recover the system will probably take you several hours. I recommend just reinstalling.


This is the path of yum repository [root@localhost yum.repos.d]# pwd /etc/yum.repos.d This is the content of that directory [root@localhost yum.repos.d]# ll total 60 -rw-r--r-- 1 root root 179 Jul 17 11:56 adobe-linux-i386.repo -rw-r--r-- 1 root root 1926 Jun 26 14:59 CentOS-Base.repo -rw-r--r-- 1 root root 637 Jun 26 14:59 CentOS-Debuginfo....


I just did the same install on CentOS 6. Since the install instructions are more geared toward Ubuntu, here is what I was able to do to install it: install all the required packages using yum yum groupinstall "Development Tools" yum install gcc yum install cmake yum install git yum install gtk2-devel yum install pkgconfig yum install numpy yum ...


Take a look under /var/cache/yum directory. They should be there unless you have some kind of autocleanup going on. If you do, try this command: find /var/cache/yum -iname '*.rpm' – If there's nothing there, see the cachedir variable in /etc/yum.conf and check out what's the current directory for storing packages. It can also be that tmpwatch or some ...


Presto makes yum download only the delta. The changes. It downloads them and apply them on the existing data, thus it saves a lot of bandwidth. (You pay with Disk IO and CPU load instead.) It is a really good thing for developing countries, people with mobile internet and so on. ps.: OpenSUSE been using this for a long time. If I remember clearly they ...


If you have a local RPM, you can get a list of dependencies via: rpm -qpR mediawiki-1.4rc1-4.i586.rpm


I put the following locale relating setting in /etc/bashrc (for all users, bash): export LANG=en_US.UTF-8 export LANGUAGE=en_US.UTF-8 export LC_COLLATE=C export LC_CTYPE=en_US.UTF-8 then run: source /etc/bashrc or log off and log on.


In CentOS, this binary is provided by the mailx package: yum install mailx FYI, as the message at the bottom of your post indicates, you are using whatprovides incorrectly. Proper usage searching mirrors for a file called 'mail' would have been: yum whatprovides */mail


For the specific commands you listed (in order).... yum search yum upgrade yum yum list installed yum list updates or yum check-update For any others, I would recommend reading the man page. It is very well written, and contains a lot more information. The biggest differences you will probably notice are: Installs will happen much faster since the ...

Only top voted, non community-wiki answers of a minimum length are eligible