Questions tagged [centos]

CentOS (Community Enterprise Operating System) is based on the Red Hat Enterprise Linux operating system. QUESTIONS MUST BE ABOUT RUNNING PROGRAMS UNDER CENTOS. Questions about server administration may be asked on https://serverfault.com

CentOS is a community-supported, mainly free software operating system based on Enterprise Linux (RHEL). It exists to provide a free enterprise class computing platform and strives to maintain 100% binary compatibility with its upstream distribution. CentOS stands for Community Enterprise Operating System.

Currently supported versions:

  • CentOS 5 (April 2007 - March 2017)
  • CentOS 6 (July 2011 - November 2020)
  • CentOS 7 (July 2014 - June 2024)
12486 questions
59
votes
11 answers

How to upgrade OpenSSL in CentOS 6.5 / Linux / Unix from source?

How do I upgrade OpenSSL in CentOS 6.5? I have used these commands, but nothings happens: cd /usr/src wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz tar -zxf openssl-1.0.1g.tar.gz cd openssl-1.0.1g ./config make make test make…
Mostafa
  • 909
  • 1
  • 7
  • 16
59
votes
7 answers

Cannot change permissions of folders within vagrant home folder

When I ssh in to my vagrant vm, I can change permissions of files and folders above and outside the vagrant user folder, and for files within the vagrant user folder. But cannot change permissions for folders under the vagrant user folder. I have…
kayaker243
  • 2,580
  • 3
  • 22
  • 30
59
votes
3 answers

Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686

CentOS 6.2 + GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6) When I debug a simple c++ code with GDB, I saw the following warning: Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686…
q0987
  • 34,938
  • 69
  • 242
  • 387
59
votes
11 answers

How to install PHP mbstring on CentOS 6.2

How do I install mbstring with PHP on CentOS 6.2 I've tried: $ sudo yum install php-mbstring Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirror.net.cen.ct.gov * extras: centos.aol.com * updates:…
alioygur
  • 5,324
  • 5
  • 35
  • 37
58
votes
5 answers

How to make Python script run as service?

I want to run a python script in a CENTOS server: #!/usr/bin/env python import socket try: import thread except ImportError: import _thread as thread #Py3K changed it. class Polserv(object): def __init__(self): …
Filipe Tagliacozzi
  • 1,431
  • 2
  • 20
  • 28
58
votes
9 answers

How to solve jenkins 'Disk space is too low' issue?

I have deployed Jenkins in my CentOS machine, Jenkins was working well for 3 days, but yesterday there was a Disk space is too low. Only 1.019GB left. problem. How can I solve this problem, it make my master offline for hours?
Eason
  • 611
  • 1
  • 5
  • 5
57
votes
2 answers

Get all files modified in last 30 days in a directory

CentOS. Need to find files modified in last 30 days to see if any of them have been infected with malware. I tried this: root@server [/home/someuser/public_html/]# find . -mtime +30 -exec ls -l {} > last30days.txt \; But instead of the last 30…
Buttle Butkus
  • 9,206
  • 13
  • 79
  • 120
57
votes
18 answers

Install php-mcrypt on CentOS 6

I have been trying to install php-mcrypt for a while now. Everytime I get the "No package php-mcrypt available." returned to me. Here's what I've tried: root@ip-********** [~]# yum install php-mcrypt --enablerepo=centosplus (<- both with and without…
Scott Dawson
  • 791
  • 1
  • 6
  • 15
56
votes
2 answers

How to send list of file in a folder to a txt file in Linux

I'm fairly new to Linux (CentOS in this case). I have a folder with about 2000 files in it. I'd like to ideally execute a command at the command prompt that would write out the name of all the files into a single txt file. If I have to, I could…
alchemical
  • 13,559
  • 23
  • 83
  • 110
55
votes
1 answer

Can't use yum inside Docker container running on CentOS

I am unable to run any yum commands inside my Docker container without getting the following error: ovl: Error while doing RPMdb copy-up: [Errno 13] Permission denied: '/var/lib/rpm/Group' You need to be root to perform this command. I'm confused…
NateW
  • 2,856
  • 5
  • 26
  • 46
55
votes
26 answers

Meteor: unexpected mongo exit code 100

I have just installed Meteor version 0.5.9 (45fef52095) to my CentOS release 6.3 (Final) server (Linux version 2.6.32-279.19.1.el6.i686 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Wed Dec 19…
Aaron Cunnington
  • 1,631
  • 2
  • 15
  • 23
55
votes
14 answers

Methods to detect public IP address in bash

As part of an installation script, I want to make an "educated guess" about the machines public IP address. It should be as robust as possible, working on a variety of hosts and platforms. Here is an example: https://gist.github.com/4669037 This…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
54
votes
5 answers

CentOS: Copy directory to another directory

I'm working with a CentOS server. I have a folder named test located in /home/server/folder/test. I need to copy the directory test to /home/server/. How can I do it?
BaTmaN
  • 825
  • 2
  • 11
  • 16
53
votes
6 answers

How to set Python3.5.2 as default Python version on CentOS?

Is there a way to set the Python 3.5.2 as the default Python version on CentOS 7? currently, I have Python 2.7 installed as default and Python 3.5.2 installed separately. I used the following commands mv /usr/bin/python /usr/bin/python-old sudo ln…
Muaaz Khalid
  • 2,199
  • 2
  • 28
  • 51
53
votes
4 answers

compare file's date bash

I'm working on a tiny dropbox-like bash script, how can I compare the dates of 2 files and replace the old one(s) with the new one without using rsync is there any simple way to process this? can the SHA1 help me with knowing the newer?
Wael hamadeh
  • 755
  • 1
  • 6
  • 14