Discussion:
What files are tipically in /usr/local/share?
(too old to reply)
Marcelo "Marc" Ranolfi via arch-general
2018-02-21 09:21:53 UTC
Permalink
Hi,

I've just accidentally deleted my '/usr/local/share' folder.
This happened while I was creating custom copies of launchers from
/usr/share/applications.

Now, if I understand it correctly, the '/usr/local' directory should
only contain files created by the user. In fact, I checked other
subdirectories (bin, etc, games, include, lib, man, sbin, src) and
they are all empty, except for a couple files I manually created in
'sbin' and 'lib'.

But, as I was almost sure that the 'share' dir specifically was _not_
empty before I started messing with it, I just ran 'pacman -Qkq' and
it reported '/usr/local/share/man' missing.
This was promptly fixed by reinstalling the 'filesystem' package.

But this has me wondering if there was something more important which
resides there.
Perhaps something generated by an application or script.

None of my backups include that directory, so I'm afraid this makes me
impossible to check for myself, other than installing/configuring
everything from scratch.

Can you guys clarify this for me?

In case it's relevant, my desktop stack has Cinnamon, LightdDM,
networkManager, Samba and other less important packages on top of a
standard Arch Linux setup.


Thank you,
Marc
Morgan Adamiec via arch-general
2018-02-21 09:26:03 UTC
Permalink
On 21 February 2018 at 09:21, Marcelo "Marc" Ranolfi via arch-general
Post by Marcelo "Marc" Ranolfi via arch-general
Hi,
I've just accidentally deleted my '/usr/local/share' folder.
This happened while I was creating custom copies of launchers from
/usr/share/applications.
Now, if I understand it correctly, the '/usr/local' directory should
only contain files created by the user. In fact, I checked other
subdirectories (bin, etc, games, include, lib, man, sbin, src) and
they are all empty, except for a couple files I manually created in
'sbin' and 'lib'.
But, as I was almost sure that the 'share' dir specifically was _not_
empty before I started messing with it, I just ran 'pacman -Qkq' and
it reported '/usr/local/share/man' missing.
This was promptly fixed by reinstalling the 'filesystem' package.
But this has me wondering if there was something more important which
resides there.
Perhaps something generated by an application or script.
None of my backups include that directory, so I'm afraid this makes me
impossible to check for myself, other than installing/configuring
everything from scratch.
Can you guys clarify this for me?
In case it's relevant, my desktop stack has Cinnamon, LightdDM,
networkManager, Samba and other less important packages on top of a
standard Arch Linux setup.
Thank you,
Marc
/usr/share that a lot of stuff in it. Quoting directly from `man hier`
"This directory contains subdirectories with specific application
data, that can be shared among different architectures of the same OS.
Often one finds stuff here that used to live in /usr/doc or /usr/lib
or /usr/man."

I would recommend you reinstall every package you currently have installed.
Dan Haworth
2018-02-21 09:29:59 UTC
Permalink
Post by Morgan Adamiec via arch-general
On 21 February 2018 at 09:21, Marcelo "Marc" Ranolfi via arch-general
Post by Marcelo "Marc" Ranolfi via arch-general
Hi,
I've just accidentally deleted my '/usr/local/share' folder.
This happened while I was creating custom copies of launchers from
/usr/share/applications.
Now, if I understand it correctly, the '/usr/local' directory should
only contain files created by the user. In fact, I checked other
subdirectories (bin, etc, games, include, lib, man, sbin, src) and
they are all empty, except for a couple files I manually created in
'sbin' and 'lib'.
But, as I was almost sure that the 'share' dir specifically was _not_
empty before I started messing with it, I just ran 'pacman -Qkq' and
it reported '/usr/local/share/man' missing.
This was promptly fixed by reinstalling the 'filesystem' package.
But this has me wondering if there was something more important which
resides there.
Perhaps something generated by an application or script.
None of my backups include that directory, so I'm afraid this makes me
impossible to check for myself, other than installing/configuring
everything from scratch.
Can you guys clarify this for me?
In case it's relevant, my desktop stack has Cinnamon, LightdDM,
networkManager, Samba and other less important packages on top of a
standard Arch Linux setup.
Thank you,
Marc
/usr/share that a lot of stuff in it. Quoting directly from `man hier`
"This directory contains subdirectories with specific application
data, that can be shared among different architectures of the same OS.
Often one finds stuff here that used to live in /usr/doc or /usr/lib
or /usr/man."
I would recommend you reinstall every package you currently have installed.
Just to add here, looking at my own local folder, I have only two
entries: "man" (which is a symlink to /usr/local/man) and "applications"
which contains just a few .desktop files for some locally installed
applications I have that didn't come from the official repos originally
(vmware-workstation, teamviewer and spotify).

You might not be as bad off as you think!

--dan
Morgan Adamiec via arch-general
2018-02-21 09:31:59 UTC
Permalink
Post by Morgan Adamiec via arch-general
On 21 February 2018 at 09:21, Marcelo "Marc" Ranolfi via arch-general
Post by Marcelo "Marc" Ranolfi via arch-general
Hi,
I've just accidentally deleted my '/usr/local/share' folder.
This happened while I was creating custom copies of launchers from
/usr/share/applications.
Now, if I understand it correctly, the '/usr/local' directory should
only contain files created by the user. In fact, I checked other
subdirectories (bin, etc, games, include, lib, man, sbin, src) and
they are all empty, except for a couple files I manually created in
'sbin' and 'lib'.
But, as I was almost sure that the 'share' dir specifically was _not_
empty before I started messing with it, I just ran 'pacman -Qkq' and
it reported '/usr/local/share/man' missing.
This was promptly fixed by reinstalling the 'filesystem' package.
But this has me wondering if there was something more important which
resides there.
Perhaps something generated by an application or script.
None of my backups include that directory, so I'm afraid this makes me
impossible to check for myself, other than installing/configuring
everything from scratch.
Can you guys clarify this for me?
In case it's relevant, my desktop stack has Cinnamon, LightdDM,
networkManager, Samba and other less important packages on top of a
standard Arch Linux setup.
Thank you,
Marc
/usr/share that a lot of stuff in it. Quoting directly from `man hier`
"This directory contains subdirectories with specific application
data, that can be shared among different architectures of the same OS.
Often one finds stuff here that used to live in /usr/doc or /usr/lib
or /usr/man."
I would recommend you reinstall every package you currently have installed.
I misread /usr/local/share for /usr/share. You can disregard what I said.
Ismael Bouya
2018-02-21 09:29:01 UTC
Permalink
hello,
Post by Marcelo "Marc" Ranolfi via arch-general
But this has me wondering if there was something more important which
resides there.
Perhaps something generated by an application or script.
manually installed ca certificates? programs installed with make
install? if programs in /usr/local/bin work correctly then there was
nothing important :)

for distribution packages,
you may check pacman -Qo /usr/local or /usr/local/share, but I think the
list is almost empty
--
Ismael
Harry Law via arch-general
2018-02-21 09:47:39 UTC
Permalink
I belive that /usr/local is used for things that would normally go into /usr, or are overriding things that are already in /usr so /usr/local/bin:/usr/local/sbin should show all (super) binaries that override those /usr/bin:/usr/sbin:/usr/share/bin:/usr/share/sbin

~ hasld [ D877A4BD345C85445CA3675EBBB05F0D58E3E018 ]
Post by Ismael Bouya
hello,
Post by Marcelo "Marc" Ranolfi via arch-general
But this has me wondering if there was something more important which
resides there.
Perhaps something generated by an application or script.
manually installed ca certificates? programs installed with make
install? if programs in /usr/local/bin work correctly then there was
nothing important :)
for distribution packages,
you may check pacman -Qo /usr/local or /usr/local/share, but I think the
list is almost empty
--
Ismael
+ signature.asc
1k (application/pgp-signature)
Marcelo "Marc" Ranolfi via arch-general
2018-02-21 11:37:27 UTC
Permalink
Great. Looks like I'm alright, then.

Thanks, gentlemen.

Have you all a great day.

On Wed, Feb 21, 2018 at 6:47 AM, Harry Law via arch-general
Post by Harry Law via arch-general
I belive that /usr/local is used for things that would normally go into /usr, or are overriding things that are already in /usr so /usr/local/bin:/usr/local/sbin should show all (super) binaries that override those /usr/bin:/usr/sbin:/usr/share/bin:/usr/share/sbin
~ hasld [ D877A4BD345C85445CA3675EBBB05F0D58E3E018 ]
Post by Ismael Bouya
hello,
Post by Marcelo "Marc" Ranolfi via arch-general
But this has me wondering if there was something more important which
resides there.
Perhaps something generated by an application or script.
manually installed ca certificates? programs installed with make
install? if programs in /usr/local/bin work correctly then there was
nothing important :)
for distribution packages,
you may check pacman -Qo /usr/local or /usr/local/share, but I think the
list is almost empty
--
Ismael
+ signature.asc
1k (application/pgp-signature)
Loading...