LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-08-2010, 10:46 AM   #1
karthigan
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
Delete all .orig config files after slackpkg update process


How do I delete all the .orig config files after I go through the following process?

slackpkg update
slackpkg install-new
slackpkg upgrade-all

Best Regards,
Karthigan.
 
Old 12-08-2010, 10:52 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
You can use find; e.g.,
Code:
log in as root or use sudo
find / -type f -name '*.orig' -exec rm {} \;
You may want to see what you're going to do before you remove them all with
Code:
find / -type f -name '*.orig' -print
and review the list.

Hope this helps some.

[EDIT] By the way, don't double-post questions (this appears in both the newbie and Slackware forums).

Last edited by tronayne; 12-08-2010 at 10:57 AM.
 
1 members found this post helpful.
Old 12-08-2010, 12:35 PM   #3
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
Code:
slackpkg new-config
 
1 members found this post helpful.
Old 12-09-2010, 02:16 PM   #4
karthigan
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you folks. Feedback was very helpful to me.

One other question: If I had made customizations on my *.orig files I would lose them. If I have to use the new config file, I would have to apply the necessary changes to the new config file. What is the value of the new config file? Do I have to make a case by case decision whether or not to move to the new config file vs. keeping the original file?

Best Regards,
Karthigan.
 
Old 12-09-2010, 09:31 PM   #5
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 180

Rep: Reputation: 19
I typically do a case by case basis when deciding.

Like rc.local I would never overwrite, but rc.M I would overwrite everytime.

Anything I changed I would look at the differences to see.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete all .orig config files after slackpkg update process karthigan Slackware 3 12-08-2010 03:20 PM
source code files orig.tar.gz, .diff.gz, .dsc fakie_flip Linux - Software 3 09-27-2008 07:12 AM
hacker got into system and root cannot delete files, See my recovery process. Senza Paura Linux - Security 9 10-26-2007 12:54 PM
Delete old update files left by Yast/YOU? asmirnov SUSE / openSUSE 1 02-27-2007 09:55 PM
update config files w/o rebooting slack66 Linux - Newbie 1 05-23-2004 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration