Questions tagged [centos]

Questions specific to the CentOS Linux distribution. Use this tag if your question relates to how the CentOS distribution affects your problem; do not use it if you just happen to be using CentOS and your question is about a specific configuration detail or syntax.

Adapted from CentOS.org:

The CentOS Linux distribution is a stable, predictable, manageable and reproducible platform derived from the sources of Red Hat Enterprise Linux (RHEL). Since March 2004, CentOS Linux has been a community-supported distribution derived from sources freely provided to the public by Red Hat. As such, CentOS Linux aims to be functionally compatible with RHEL. It mainly change packages to remove upstream vendor branding and artwork. CentOS Linux is no-cost and free to redistribute.

CentOS is developed by team of core developers. The core developers are supported by an active user community, including: system administrators, network administrators, enterprise users, managers, core Linux contributors and Linux enthusiasts from around the world.

Commercial support is offered via a number of vendors.

Using the CentOS tag

Use this tag if your question relates to how the CentOS distribution affects your problem; do not use it if you just happen to be using CentOS and your question is about a specific configuration detail or syntax (e.g. a shell script; a web server configuration question; user or group permissions).

Further reading

8363 questions
746
votes
32 answers

Why am I still getting a password prompt with ssh with public key authentication?

I'm working from the URL I found here: http://web.archive.org/web/20160404025901/http://jaybyjayfresh.com/2009/02/04/logging-in-without-a-password-certificates-ssh/ My ssh client is Ubuntu 64 bit 11.10 desktop and my server is Centos 6.2 64 bit. I…
Thom
  • 8,025
224
votes
2 answers

What does "systemctl daemon-reload" do?

I have a service that stopped suddenly. I tried to restart that service but failed and was asked to run: systemctl daemon-reload . What does it exactly do? What is a daemon-reload ?
John
  • 2,341
217
votes
3 answers

How to install Desktop Environments on CentOS 7?

I have recently installed CentOS 7 (Minimal Install without GUI) and now I want to install a GUI environment in it. How can I install Desktop Environments on previously installed CentOS7 without reinstalling it?
αғsнιη
  • 41,998
211
votes
2 answers

In CentOS, what is the difference between yum update and yum upgrade?

What is the difference between yum update and yum upgrade , and when should I use one over the other?
201
votes
4 answers

ifconfig command not found

I've just installed CentOS7 as a virtual machine on my mac (osx10.9.3 + virtualbox) .Running ifconfig returns command not found. Also running sudo /sbin/ifconfig returns commmand not found. I am root. The output of echo $PATH is as below.…
RobSeg
  • 2,480
175
votes
12 answers

Is CentOS exactly the same as RHEL?

I'm sure this question has been asked again and again elsewhere (I did not find anything specific to CentOS vs RHEL in SE), but I would still like to ask and confirm a few specific points. I am well aware that CentOS removes all RH trademarks,…
Oxwivi
  • 1,812
169
votes
3 answers

The name > org.freedesktop.PolicyKit1 was not provided by any .service files

When attempting to launch system-config-users from command line, I get the following warning, and the tool does not open. I'm using CentOS 7 with Mate 1.8.1. WARNING **: Error enumerating actions:…
a coder
  • 3,373
144
votes
3 answers

How to shrink root filesystem without booting a livecd

I find myself needing to rearrange a system's partitions to move data previously under the root filesystem into dedicated mount points. The volumes are all in LVM, so this is relatively easy: create new volumes, move data into them, shrink the root…
Tom Hunt
  • 10,526
141
votes
12 answers

How can I fix "cannot find a valid baseurl for repo" errors on CentOS?

I finished installing CentOS 6, but when I tried running yum update I got: [root@centos6test ~]# yum update Loaded plugins: fastestmirror, refresh-packagekit Determining fastest mirrors Could not retrieve mirrorlist…
shivshankar
  • 1,538
  • 2
  • 10
  • 7
138
votes
10 answers

How to determine CentOS version?

How do I determine the version of a CentOS server without access to any graphical interface? I've tried several commands: # cat /proc/version Linux version 2.6.18-128.el5 (mockbuild@hs20-bc1-7.build.redhat.com) (gcc version 4.1.2 20080704 (Red Hat…
133
votes
3 answers

What's the difference between /usr/lib/systemd/system and /etc/systemd/system?

Before all the unit files were in /etc/systemd/system/ but now some are showing up in /usr/lib/systemd/system (<- on CentOS, or /lib/systemd/system <- on Debian/Ubuntu), what is the difference between these folders?
therealssj
  • 1,461
131
votes
2 answers

How do I display log messages from previous boots under CentOS 7?

Executing journalctl under a CentOS 7 system just prints messages generated after the last boot. The command # journalctl --boot=-1 prints Failed to look up boot -1: Cannot assign requested address and exits with status 1. Comparing it to a current…
maxschlepzig
  • 60,332
117
votes
5 answers

Can't Install build-essential on CentOS

When I run the command: sudo apt-get install build-essential I get the following error message: Reading Package Lists... Done Building Dependency Tree... Done E: Couldn't find package build-essential
Waley Chen
  • 1,323
116
votes
4 answers

what is the CentOS equivalent of /var/log/syslog (on Ubuntu)?

On ubuntu this file exists: /var/log/syslog . However the same file does not appear on CentOS Distributions. What is the equivalent file on CentOS?
brakertech
  • 1,415
112
votes
2 answers

How do I copy a symbolic link?

I have a symbolic link to a file in one directory. I would like to have that same link in another directory. How do I copy a symbolic link? I tried to cp the symbolic link, but this copies the physical file it points to, instead of the symbolic link…
User
  • 2,447
  • 3
  • 22
  • 23
1
2 3
…
99 100