[CentOS] attempting to create directory /root/perl5

Valeri Galtsev

galtsev at kicp.uchicago.edu
Mon Jul 28 21:03:39 UTC 2014


Nobody seemed to answer, so I will answer it myself.

If you have package perl-homedir installed, it adds its stuff to
/etc/profile.d, and upon user login an existence of ~/perl5 will be
checked and this directory will be created if it doesn't exist.

It looks like perl-homedir appears in one of the package groups on CentOS 7.

If (like me) you don't like this, you can add to your kickstart file line
that will make this package excluded. Here are two lines I have at the end
of %packages group in my kickstart file:

%packages
...
-perl-local-lib
-perl-homedir
%end

Thanks.
Valeri

On Fri, July 25, 2014 2:11 pm, Valeri Galtsev wrote:
> Dear All,
>
> Could someone give me some pointers. I never had it on CentOS 4,5,6. On
> freshly installed CentOS 7 ("development workstation" installation type
> with several extra things) when I log in as root in console I get this
> message:
>
> attempting to create directory /root/perl5
>
> and indeed empty directory /root/perl5 is being created. (And my
> understanding is that that is done for every user at login). Can anyone
> point to what does it and what is the rationale behind that.
>
> Not that I no not like perl in particular, but I do not like any tweaking
> of anything happening as a user logs in.
>
> Thanks for all your help.
>
> And my apologies for being this ignorant person who likely doesn't know
> some trivial thing...
>
> Sincerely yours,
> Valeri
>
> ++++++++++++++++++++++++++++++++++++++++
> Valeri Galtsev
> Sr System Administrator
> Department of Astronomy and Astrophysics
> Kavli Institute for Cosmological Physics
> University of Chicago
> Phone: 773-702-4247
> ++++++++++++++++++++++++++++++++++++++++
>


++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++



More information about the CentOS mailing list