Questions tagged [centos]

CentOS is a free (as in beer and speech) GNU/Linux distribution that is community driven and based on source code released from RedHat.

CentOS is a free (as in beer and speech) GNU/Linux distribution that is community driven and based on source code released from RedHat. CentOS aims to be 100% binary compatible with RedHat Enterprise Linux. CentOS mainly changes packages to remove upstream vendor branding and artwork.

Support & Lifecycle

Each CentOS version is maintained for up to 10 years and a new version is released approximately every 2 years.

+----------+-------------- +---------------+---------------------+
|  Version | Release date  |  Full updates | Maintenance updates |
+----------+---------------+---------------+---------------------+
| 3        | 19 March 2004 | 20 July 2006  |31 October 2010      |
| 4        | 9 March 2005  | 31 March 2009 |29 February 2012     |
| 5        | 12 April 2007 | Q1 2014       |31 March 2017        |
| 6        | 10 July 2011  | Q2 2017       |30 November 2020     |
| 7        | 7 July 2014   | Q4 2020       |30 June 2024         |
+----------+---------------+---------------+---------------------+

External Resources:

10670 questions
47
votes
6 answers

tell yum to ignore a single dependency

I'm trying to install winswitch on CentOs 6. It requires nxagent. But in centos, the package name is nx. Is there a way to tell yum to skip checking the nxagent dependency (I installed nx already)? Specifying --skip-broken skips the whole thing.
IttayD
  • 1,087
  • 4
  • 11
  • 14
47
votes
3 answers

Disable the public key check for rpm installation

I want to make a DVD with some useful packages (for example php-common). The only problem is that if I try to install on a computer that's not connected to internet, I can't validate the public key. The scenario is like this: I download the RPMs,…
zozo
  • 783
  • 3
  • 11
  • 22
45
votes
4 answers

Create new vsftpd user and lock to (specify) home / login directory

I need to periodically give temporary and limited access to various directories on a CentOS linux server that has vsftp installed. I've created a user using useradd [user_name] and given them a password using passwd [password]. I've created a…
zigojacko
  • 1,453
  • 2
  • 12
  • 25
45
votes
8 answers

ls hangs for a certain directory

There is a particular directory (/var/www), that when I run ls (with or without some options), the command hangs and never completes. There is only about 10-15 files and directories in /var/www. Mostly just text files. Here is some investigative…
Jake Wilson
  • 8,814
  • 29
  • 97
  • 125
44
votes
4 answers

Tcpdump on multiple interfaces

I need to capture traffic on a CentOS 5 server which acts as a web proxy with 2 wan interfaces and 1 LAN. In order to troubleshoot a weird proxy problem, I would like to have a capture of a full conversation. Since external connections are balanced…
Nahidul islam
  • 441
  • 1
  • 4
  • 3
44
votes
5 answers

How to shrink /home and add more space on CentOS7

CentOS 7 file system is XFS, And resize2fs doesn't work. I need to shrink /home to 400G and add 100G space to /. What should I do? # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 50G 50G 341M 100%…
GoingMyWay
  • 565
  • 2
  • 6
  • 10
44
votes
8 answers

What is the value of JAVA_HOME for CentOS?

I have install java through yum on CentOS, however another java programme needs to know what the JAVA_HOME environmental variable is. I know all about setting environmental variables, but what do I set it to? java is installed in /usr/bin/java, it…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
43
votes
8 answers

where are the default ulimit values set? (linux, centos)

I have two CentOS 5 servers with nearly identical specs. When I login and do ulimit -u, on one machine I get unlimited, and on the other I get 77824. When I run a cron like: * * * * * ulimit -u > ulimit.txt I get the same results (unlimited,…
nomercysir
  • 431
  • 1
  • 5
  • 4
42
votes
3 answers

Increasing nproc for processes launched by systemd on CentOS 7

I have successfully increased the nofile and nproc value for the local users, but I couldn't find a proper solution for the processes launched by systemd. Adding max_open_files to the MariaDB configuration doesn't help. su - mysql to change the…
amq
  • 733
  • 2
  • 6
  • 9
42
votes
13 answers

How to find out details about hardware on the Linux machine?

-i.e - how to get a full list of hardware components in command line (on a machine with no window system) Thank you.
Evgeny
  • 599
  • 3
  • 10
  • 17
42
votes
2 answers

CentOS /usr/local/lib system wide $LD_LIBRARY_PATH?

I install custom software in /usr/local/lib. How do I set the PATH and LD_LIBRARY_PATH in CentOS 6 system-wide to use /usr/local/lib. I realize there may be more than one way. What's the simplest and most standard way?
unixman83
  • 1,932
  • 8
  • 25
  • 33
41
votes
1 answer

What does " dead but subsys locked" mean?

I'm trying to run memcached on a centos box and it runs for a while, but then ends up in this state: memcached dead but subsys locked netstat shows this: tcp 0 0 :::11211 :::* LISTEN udp …
Nick Brosnahan
  • 513
  • 1
  • 6
  • 7
41
votes
5 answers

How to list RPM dependencies?

Our production server is running CentOS release 5.2 (Final). How do I see/get/list all the dependencies of an already installed RPM package? For example: SQLite v3.3.6 is already installed in the server. I want to see all the dependencies of this…
Gnanam
  • 1,459
  • 13
  • 26
  • 32
40
votes
5 answers

Should I be concerned that swap is being used on a host with nearly 40GB of free memory?

I have a production host, below: The system is using 1GB of swap, while maintaining nearly 40GB of free, unused memory space. Should I be concerned about this, or is it mostly normal?
MrDuk
  • 865
  • 2
  • 10
  • 18
38
votes
3 answers

How to enable PowerTools repository in CentOS 8?

Since I had a lot of trouble finding out how to do this anywhere, I'd like to ask, how do I enable the PowerTools repository in CentOS 8? (equivalent of CodeReady Linux Builder repo in RHEL 8)
omusil
  • 483
  • 1
  • 4
  • 5