You are not logged in.

#26 2009-12-19 00:33:19

chilebiker
Member
From: Zurich, Switzerland
Registered: 2006-07-18
Posts: 161

Re: Dealing With .pacnew Files

@jmdennis
Looks more like a Xorg issue to me. Have you checked the logs?


Don't panic!

Offline

#27 2009-12-19 05:54:46

jmdennis
Member
Registered: 2009-03-21
Posts: 61

Re: Dealing With .pacnew Files

I have not found a way to get the system to work when I boot it.  I have had many screw ups.  Some of them caused by having testing enabled and some by my own screw ups.  This time it was my own screw up in the fact that I did a copy of /etc/group.pacman and another one instead of following these directions but I did not know about these at the time.  I loaded OpenSUSE on my system but will reload it.  One of these days I will have to start using virtual box instead of reloading all the time.  One good thing though is that I learn each time.  I wonder if the yaourt -C command will work with building a system with pacman as it always creates these files before the system is fully built.  I then add yaourt but usually after I get a fully functional desktop.

Offline

#28 2010-10-05 12:16:44

equilibrium
Member
From: EU
Registered: 2008-06-18
Posts: 80
Website

Re: Dealing With .pacnew Files

Just wanted to say thanks for the script.

I adapted it slightly as I don't have kdesu but added in an if statement to check if user is root.

#!/bin/bash
# pacnew-diff - merge *.pacnew files with original configurations with meld

# Colors
blue="\033[1;34m"
green="\033[1;32m"
red="\033[1;31m"
bold="\033[1;37m"
reset="\033[0m"

# Check for root
if [ $(whoami) != "root" ]; then
    echo -e $red"error:$reset you cannot perform this operation unless you are root."
    exit 1
fi

pacnew=$(find /etc -type f -name "*.pacnew")

for config in $pacnew
do
  meld ${config%\.*} $config &
  wait
done

Just removes the dependancy of kdesu.

edit:

Just thought there should be a script to remove the pacnew files once they have been melded ??

find /etc -type f -name "*.pacnew" | xargs rm

need to run as root, also would make sure everything works on on reboot or two etc big_smile

also just noticed in the wiki

find /etc -type f -name "*.pacnew" -exec rm {} \;

doh big_smile

Last edited by equilibrium (2010-10-05 12:29:56)


Archlinux x86_64 | Github | acer chromebook c7 (arch)

Offline

#29 2010-10-05 12:52:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Dealing With .pacnew Files

Offline

Board footer

Powered by FluxBB