SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Some package managers save the original file so they don't clobber local changes, but those are not typically called '.orig'. That name is frequently used by admins who manually edit a config file and want to keep the original around for reference. I don't know of any code or script that does that.
Those files are put there when you run slackpkg upgrades. The ones in rc.d in particular come from the sysvinit-scripts package. When you upgrade that package the new scripts come in as *.new (e.g. rc.local.new) The extensions are then changed depending on what you do when slackpkg asks "what to do with new config files". If you choose to "overwrite" then the *.new files are mv'd to the actual file names and the old scripts are mv'd to *.orig names.
Check out what the slackpkg script does in /usr/libexec/slackpkg/functions.d/post-functions.sh if you want the gory details.
Also if you "ls -l" you will see that the ones that were executable before the rename are still executable after. Shouldn't matter since only the script with the proper filename will run.
What are rc.*.orig files in /etc/rc.d?
Where do they come from?
Do they have to have executable permission?
From 'man slackpkg.conf'
Code:
ORIG_BACKUPS
During integration of .new files during the post installation phase, original files are backed up to a file name with a
.orig extension. To prevent this, set this option to "off" and note that you will no longer have a copy of the content
of the file prior to it being replaced by the .new version.
The default value of ORIG_BACKUPS is "on". Only change this if you are sure you don't want backups of overwritten
files.
From the command line, you can use -orig_backups=value.
They will have the same permissions as the original versions. They won't execute since they are never called on.
Last edited by chrisretusn; 03-25-2020 at 08:43 AM.
Reason: The to They
ORIG_BACKUPS
During integration of .new files during the post installation phase, original files are backed up to a file name with a
.orig extension. To prevent this, set this option to "off" and note that you will no longer have a copy of the content
of the file prior to it being replaced by the .new version.
The default value of ORIG_BACKUPS is "on". Only change this if you are sure you don't want backups of overwritten
files.
From the command line, you can use -orig_backups=value.
They will have the same permissions as the original versions. They won't execute since they are never called on.
My patch to enable the above option is only available from Robby's git master repo, or in one of the slackpkg beta releases - it should transition into the main tree on the next slackpkg update.
Some package managers save the original file so they don't clobber local changes, but those are not typically called '.orig'. That name is frequently used by admins who manually edit a config file and want to keep the original around for reference. I don't know of any code or script that does that.
I always use ".original" for this purpose to avoid conflicts with Slackware package upgrades.
My patch to enable the above option is only available from Robby's git master repo, or in one of the slackpkg beta releases - it should transition into the main tree on the next slackpkg update.
Oops
Yeah I am using slackpkg - version 2.84.0_beta8
Yet those files have been around for ages. Long before I started testing the beta. As mentioned above they are created in post-functions.sh
Last edited by chrisretusn; 03-26-2020 at 07:29 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.