You are not logged in.

#1 2009-07-18 17:10:14

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

pacnews -- a script to streamline dealing with *.pacnew files

with the recent vc -> tty change going on in [testing], dealing with your *.pacnew files (especially inittab) may be required to prevent an unbootable system, just see skottish's warning (note: i say /may/ be required, but it's /always/ recommended)

thanks to this little script i made, merging the changes was a quick and simple task. 

this script does need to be run as root so please review to code before blindly executing anything.

the help wrote:

pacnews is designed to streamline dealing with .pacnew files.

pacnews must be run as root, and will optionally accept a
directory on which to act, otherwise /etc will be searched by
default.

all *.pacnew files found will be presented to you one by one;
you'll have the option of viewing/editing your current config
file side by side with the pacnew file through vimdiff, then
you can remove the pacnew file, replace you're existing
config file with the .pacnew file, or do nothing.

answering anything other than "y" to the options will
eventually bring you back without changing your system in any
way.

familiarity with vim[diff] is required.

the code can be downloaded from here


/edit: typo

Last edited by brisbin33 (2009-07-18 20:11:15)

Offline

#2 2009-07-18 17:12:31

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: pacnews -- a script to streamline dealing with *.pacnew files

Nice, thanks brisbin!  I will give it a try next time I have updates that require it.


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#3 2009-07-18 20:09:42

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: pacnews -- a script to streamline dealing with *.pacnew files

Bookmarking this, this seems a lot easier than having to do it manually... Then again, although i'm familiar with vim vimdiff is unknown territory smile.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2009-07-18 20:55:51

dbb
Member
From: New York City
Registered: 2008-12-14
Posts: 31
Website

Re: pacnews -- a script to streamline dealing with *.pacnew files

What's the difference between this and pacdiff?

Offline

#5 2009-07-18 21:00:00

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: pacnews -- a script to streamline dealing with *.pacnew files

no idea, never heard of pacdiff.

Offline

#6 2009-07-18 21:31:57

dbb
Member
From: New York City
Registered: 2008-12-14
Posts: 31
Website

Re: pacnews -- a script to streamline dealing with *.pacnew files

brisbin33 wrote:

no idea, never heard of pacdiff.

It's in the pacman-contrib package, I believe it does exactly as you describe. Oh well, the more the merrier. smile

Offline

#7 2009-08-19 01:16:46

Heema
Member
From: Egypt
Registered: 2008-08-12
Posts: 62

Re: pacnews -- a script to streamline dealing with *.pacnew files

also

yaourt -C

does the same this as your script

Offline

#8 2009-08-19 07:32:20

Heller_Barde
Member
Registered: 2008-04-01
Posts: 245

Re: pacnews -- a script to streamline dealing with *.pacnew files

Heema wrote:

also

yaourt -C

does the same this as your script

but yaourt slowly breaks apart on my system (by now, not even the variables are expanded anymore, which is infinitely odd...
"Do you really want to install $PKG (Y/n)"
)

cheers
Barde

Offline

Board footer

Powered by FluxBB