pacnew_scripts

2014-06-11 16:53 UTC
  • Xyne

Metadata

Description:

A collection of scripts to help merge changes in .pacnew files.

Latest Version:

2012.12

Architecture:

  • any

Dependencies:

  • perl

Arch Repositories:

  • [xyne-any]
  • [xyne-i686]
  • [xyne-x86_64]

AUR ID:

35803

Arch Forum ID:

93564

Tags:

About

This package contains scripts that can help merge .pacnew files after a pacman upgrade. These scripts print their results to STDOUT and thus do NOT make any changes to the files. It is up to the user to inspect the output and, if satisfied, redirect it to the original file and then delete the .pacnew file.

Options

The scripts accept "-c" and "--compare" as options and will display relevant information about differences between the files. For group and gshadow, this will display 3 columns to compare the original, .pacnew and merged files and will use colors to highlight changes. For the mirrorlist and locale.gen, it will check that all settings in the original file are available in the new file and print out a list of any that aren't (e.g. if one of your current mirrors has been dropped from the mirrorlist, it will be listed in the output).

Files

  • merge_pacnew_group
  • merge_pacnew_gshadow
  • merge_pacnew_locale_gen
  • merge_pacnew_mirrorlist
  • merge_pacnew_passwd
  • merge_pacnew_shadow

merge_pacnew_group Help Message

$ merge_pacnew_group -h

ABOUT
  /usr/bin/merge_pacnew_group is intended to merge changes in
    /etc/group.pacnew
  into
   /etc/group
  after a pacman upgrade. It will NOT make any changes to the file itself. It
  will only print the merge file to STDOUT for inspection. If you are satisfied
  with the changes, redirect the output to a new file and then copy it to the
  original file. Do not redirect the output directly as it may wipe the original
  file before it is read. Make a backup of the original if you are not sure.

USAGE
  /usr/bin/merge_pacnew_group [options] [<path 1>] [<path 2>]
    <path 1>: original file
    <path 2>: .pacnew file

    <path 2> defaults to "<path 1>.pacnew"
    <path 1> defaults to /etc/group

OPTIONS
  -c,--compare
    Compare <path 1> to <path 2> by displaying 3 columns. The first column
    contains entries from <path 1>, the second from <path 2>, and the third
    shows the entries of the merged output.

    Colors are used to highlight the differences.

  -h, --help
    Display this message and exit.

merge_pacnew_gshadow Help Message

$ merge_pacnew_gshadow -h

ABOUT
  /usr/bin/merge_pacnew_gshadow is intended to merge changes in
    /etc/gshadow.pacnew
  into
   /etc/gshadow
  after a pacman upgrade. It will NOT make any changes to the file itself. It
  will only print the merge file to STDOUT for inspection. If you are satisfied
  with the changes, redirect the output to a new file and then copy it to the
  original file. Do not redirect the output directly as it may wipe the original
  file before it is read. Make a backup of the original if you are not sure.

USAGE
  /usr/bin/merge_pacnew_gshadow [options] [<path 1>] [<path 2>]
    <path 1>: original file
    <path 2>: .pacnew file

    <path 2> defaults to "<path 1>.pacnew"
    <path 1> defaults to /etc/gshadow

OPTIONS
  -c,--compare
    Compare <path 1> to <path 2> by displaying 3 columns. The first column
    contains entries from <path 1>, the second from <path 2>, and the third
    shows the entries of the merged output.

    Colors are used to highlight the differences.

  -h, --help
    Display this message and exit.

merge_pacnew_locale_gen Help Message

$ merge_pacnew_locale_gen -h

ABOUT
  /usr/bin/merge_pacnew_locale_gen is intended to merge changes in
    /etc/locale.gen.pacnew
  into
   /etc/locale.gen
  after a pacman upgrade. It will NOT make any changes to the file itself. It
  will only print the merge file to STDOUT for inspection. If you are satisfied
  with the changes, redirect the output to a new file and then copy it to the
  original file. Do not redirect the output directly as it may wipe the original
  file before it is read. Make a backup of the original if you are not sure.

USAGE
  /usr/bin/merge_pacnew_locale_gen [options] [<path 1>] [<path 2>]
    <path 1>: original file
    <path 2>: .pacnew file

    <path 2> defaults to "<path 1>.pacnew"
    <path 1> defaults to /etc/locale.gen

OPTIONS
  -c,--compare
    Check if there are any locales in the current file which are not available
    in the new file.

  -h, --help
    Display this message and exit.

merge_pacnew_mirrorlist Help Message

$ merge_pacnew_mirrorlist -h

ABOUT
  /usr/bin/merge_pacnew_mirrorlist is intended to merge changes in
    /etc/pacman.d/mirrorlist.pacnew
  into
   /etc/pacman.d/mirrorlist
  after a pacman upgrade. It will NOT make any changes to the file itself. It
  will only print the merge file to STDOUT for inspection. If you are satisfied
  with the changes, redirect the output to a new file and then copy it to the
  original file. Do not redirect the output directly as it may wipe the original
  file before it is read. Make a backup of the original if you are not sure.

USAGE
  /usr/bin/merge_pacnew_mirrorlist [options] [<path 1>] [<path 2>]
    <path 1>: original file
    <path 2>: .pacnew file

    <path 2> defaults to "<path 1>.pacnew"
    <path 1> defaults to /etc/pacman.d/mirrorlist

OPTIONS
  -c,--compare
    Check if there are any servers in the current file which are not available
    in the new file.

  -h, --help
    Display this message and exit.

merge_pacnew_passwd Help Message

$ merge_pacnew_passwd -h

ABOUT
  /usr/bin/merge_pacnew_passwd is intended to merge changes in
    /etc/passwd.pacnew
  into
   /etc/passwd
  after a pacman upgrade. It will NOT make any changes to the file itself. It
  will only print the merge file to STDOUT for inspection. If you are satisfied
  with the changes, redirect the output to a new file and then copy it to the
  original file. Do not redirect the output directly as it may wipe the original
  file before it is read. Make a backup of the original if you are not sure.

USAGE
  /usr/bin/merge_pacnew_passwd [options] [<path 1>] [<path 2>]
    <path 1>: original file
    <path 2>: .pacnew file

    <path 2> defaults to "<path 1>.pacnew"
    <path 1> defaults to /etc/passwd

OPTIONS
  -c,--compare
    Compare <path 1> to <path 2> by displaying 3 columns. The first column
    contains entries from <path 1>, the second from <path 2>, and the third
    shows the entries of the merged output.

    Colors are used to highlight the differences.

  -h, --help
    Display this message and exit.

merge_pacnew_shadow Help Message

$ merge_pacnew_shadow -h

ABOUT
  /usr/bin/merge_pacnew_shadow is intended to merge changes in
    /etc/shadow.pacnew
  into
   /etc/shadow
  after a pacman upgrade. It will NOT make any changes to the file itself. It
  will only print the merge file to STDOUT for inspection. If you are satisfied
  with the changes, redirect the output to a new file and then copy it to the
  original file. Do not redirect the output directly as it may wipe the original
  file before it is read. Make a backup of the original if you are not sure.

USAGE
  /usr/bin/merge_pacnew_shadow [options] [<path 1>] [<path 2>]
    <path 1>: original file
    <path 2>: .pacnew file

    <path 2> defaults to "<path 1>.pacnew"
    <path 1> defaults to /etc/shadow

OPTIONS
  -c,--compare
    Compare <path 1> to <path 2> by displaying 3 columns. The first column
    contains entries from <path 1>, the second from <path 2>, and the third
    shows the entries of the merged output.

    Colors are used to highlight the differences.

  -h, --help
    Display this message and exit.
Contact
echo xyne.archlinux.ca | sed 's/\./@/'
Feeds
Blog News
Validation
XHTML 1.0 Strict CSS level 3 Atom 1.0