Re: [CentOS] Grep: show me this line and the next N lines?

2011-05-31 Thread Dotan Cohen
On Tue, May 31, 2011 at 01:26, John R. Dennison  wrote:
> On Tue, May 31, 2011 at 01:10:40AM +0300, Dotan Cohen wrote:
>> Thanks, all. I did actually look at the grep manpage but after a few
>> screenfuls it became tl;dr and I started just skimming. I suppose that
>> I skimmed too fast!
>
> Um
>
> It's the first option described.
>

I see now that the server's grep manpage (CentOS) does in fact put it
right there at the top. I usually pull up manpages on localhost, not
what I'm SSHing into, and on this Debian-Derived distro it is buried
halfway down the third page of nine. That is interesting, and I'm sure
that there is a lesson to be learned from that!

GREP(1)

  GREP(1)



NAME
   grep, egrep, fgrep, rgrep - print lines matching a pattern

SYNOPSIS
   grep [OPTIONS] PATTERN [FILE...]
   grep [OPTIONS] [-e PATTERN | -f FILE] [FILE...]

DESCRIPTION
   grep  searches  the  named  input  FILEs  (or standard input if
no files are named, or if a single hyphen-minus (-) is given as file
name) for lines
   containing a match to the given PATTERN.  By default, grep
prints the matching lines.

   In addition, three variant programs egrep, fgrep and rgrep are
available.  egrep is the same as grep -E.  fgrep is the same as  grep
-F.   rgrep  is
   the  same  as grep -r.  Direct invocation as either egrep or
fgrep is deprecated, but is provided to allow historical applications
that rely on them
   to run unmodified.

OPTIONS
   Generic Program Information
   --help Print a usage message briefly summarizing these
command-line options and the bug-reporting address, then exit.

   -V, --version
  Print the version number of grep to the standard output
stream.  This version number should be included in all bug reports
(see below).

   Matcher Selection
   -E, --extended-regexp
  Interpret PATTERN as an extended regular expression
(ERE, see below).  (-E is specified by POSIX.)

   -F, --fixed-strings
  Interpret PATTERN as a list of fixed strings, separated
by newlines, any of which is to be matched.  (-F is specified by
POSIX.)

   -G, --basic-regexp
  Interpret PATTERN as a basic regular expression (BRE,
see below).  This is the default.

   -P, --perl-regexp
  Interpret PATTERN as a Perl regular expression.  This is
highly experimental and grep -P may warn of unimplemented features.

   Matching Control
   -e PATTERN, --regexp=PATTERN
  Use PATTERN as the pattern.  This can be used to specify
multiple search patterns, or to protect a pattern beginning with a
hyphen (-).   (-e
  is specified by POSIX.)

   -f FILE, --file=FILE
  Obtain patterns from FILE, one per line.  The empty file
contains zero patterns, and therefore matches nothing.  (-f is
specified by POSIX.)

   -i, --ignore-case
  Ignore case distinctions in both the PATTERN and the
input files.  (-i is specified by POSIX.)

   -v, --invert-match
  Invert the sense of matching, to select non-matching
lines.  (-v is specified by POSIX.)

   -w, --word-regexp
  Select only those lines containing matches that form
whole words.  The test is that the matching substring must either be
at the beginning of
  the line, or preceded by a non-word constituent
character.  Similarly, it must be either at the end of the line or
followed  by  a  non-word
  constituent character.  Word-constituent characters are
letters, digits, and the underscore.

   -x, --line-regexp
  Select only those matches that exactly match the whole
line.  (-x is specified by POSIX.)

   -y Obsolete synonym for -i.

   General Output Control
   -c, --count
  Suppress  normal  output; instead print a count of
matching lines for each input file.  With the -v, --invert-match
option (see below), count
  non-matching lines.  (-c is specified by POSIX.)

   --color[=WHEN], --colour[=WHEN]
  Surround the matched (non-empty) strings, matching
lines, context lines, file names, line numbers, byte offsets, and
separators  (for  fields
  and  groups  of  context  lines)  with  escape sequences
to display them in color on the terminal.  The colors are defined by
the environment
  variable GREP_COLORS.  The deprecated environment
variable GREP_COLOR is still supported, but its setting does not have
priority.   WHEN  is
  never, always, or auto.

   -L, --files-without-match
  Suppress  normal  output; instead print the name of each
input file from which no output would normally have been printed.  The
scanning will
  stop on the first match.

   -l, --files-with-matches
  Suppress normal output; instead print the name of each
input file from which output would normally have been printed.  The
scanning will stop
  on the 

[CentOS] [CentOS 5.5] Program/method to test integrity of the system/packages

2011-05-31 Thread giggzounet
Hi,

we have a cluster. The master has CentOS 5.5 on it. At the moment it
crashes randomly...perhaps a hardware problem...no idea. But to
eliminate a software problem I would like to test the integrity of the
system or of the installed package. Is it a way to check if the binary
installed by binary.rpm is the good one ? with md5sum or something else ?

Thx a lot,
Guillaume

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [CentOS 5.5] Program/method to test integrity of the system/packages

2011-05-31 Thread cornel panceac
2011/5/31 giggzounet 

> Hi,
>
> we have a cluster. The master has CentOS 5.5 on it. At the moment it
> crashes randomly...perhaps a hardware problem...no idea. But to
> eliminate a software problem I would like to test the integrity of the
> system or of the installed package. Is it a way to check if the binary
> installed by binary.rpm is the good one ? with md5sum or something else ?
>
> Thx a lot,
> Guillaume
>

rpm -Va

?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [CentOS 5.5] Program/method to test integrity of the system/packages

2011-05-31 Thread giggzounet
Le 31/05/2011 09:59, cornel panceac a écrit :
> 
> 
> 2011/5/31 giggzounet  >
> 
> Hi,
> 
> we have a cluster. The master has CentOS 5.5 on it. At the moment it
> crashes randomly...perhaps a hardware problem...no idea. But to
> eliminate a software problem I would like to test the integrity of the
> system or of the installed package. Is it a way to check if the binary
> installed by binary.rpm is the good one ? with md5sum or something
> else ?
> 
> Thx a lot,
> Guillaume
> 
> 
> rpm -Va
> 
> ?
> 
> 
> 
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos

great! I test that :D

thx

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] BIND9 - automatic zone definition replication to slave

2011-05-31 Thread Lars Hecking
Martin Šťastný writes:
> Hello,
> 
> I have simple question - is there a way to automatically replicate zone
> definition (not zone itself - this is easy) to slave server using BIND9? Is
> it BIND built-in or are there prebuilt scripts? Or I have to write that
> script on my own (started by Cron, transfer file with zone names, create
> conf file and finallly restart BIND?)?

 Check out incron from rpmforge. Together with rsync and possibly a bit of
 custom scripting it should be perfect.

 I would not rsync config files directly into place, but use a staging area,
 watched by incron on the other end, so that a custom script could do some
 integrity checking before applying the update.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] the tag Obsoletes: in spec files

2011-05-31 Thread Philippe Naudin
How exactly to use the tag "Obsoletes:" in a spec file ?

I need to offer texlive to users on Centos-5.6, so I packaged it (based
on a Mandriva src.rpm), and that works. 

But I want rpm to *replace* tetex by texlive, instead of just adding
texlive, when users do a : 
$ yum install texlive
(we have a local repo here).

So I added this line in texlive.spec :
Obsoletes:  tetex
and of course I rebuilt the package, and (of course) that just don't
work, despite tetex is listed among the Obsoleted packages :
$ rpm -qp --obsoletes texlive-20110312-0phn.x86_64.rpm
dvi2tty <= 5.3.1
jadetex
kpathsea <= 20100722
kpathsea-devel <= 20100722
kpathsea-static-devel <= 20100722
pdfjam <= 1.21
ps2eps <= 1.64
tetex
tetex-context
tetex-devel
tetex-dvipdfm
tetex-dvips
tetex-dvilj
tetex-latex
tetex-mfwin
tetex-texi2html
tetex-usrlocal
tetex-xdvi
etc...
(tetex is the CentOS one : tetex-3.0-33.8.el5_5.6)

Can someone explain me why this fails, and eventually an other way to
solve this problem ?

Thanks,

-- 
Philippe
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] the tag Obsoletes: in spec files

2011-05-31 Thread John Doe
From: Philippe Naudin 

> But I want rpm to *replace* tetex by texlive, instead of just adding
> texlive, when users do a : 
> $ yum install texlive
> (we have a local repo here).
> So I added this line in texlive.spec :
> Obsoletes:  tetex

Not an rpm expert but maybe some other package requires tetex?
rpm -q --whatrequires tetex
Or are these packages tetex requirement automaticaly changed to the replacement 
package?
I think it works just once and won't prevent tetex from being reinstalled...

JD
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] the tag Obsoletes: in spec files

2011-05-31 Thread Simon Matter
> How exactly to use the tag "Obsoletes:" in a spec file ?
>
> I need to offer texlive to users on Centos-5.6, so I packaged it (based
> on a Mandriva src.rpm), and that works.
>
> But I want rpm to *replace* tetex by texlive, instead of just adding
> texlive, when users do a :
> $ yum install texlive
> (we have a local repo here).
>
> So I added this line in texlive.spec :
> Obsoletes:  tetex

Does your package provide tetex? If not, use

Provides: tetex

And note, there is also Conflicts: but you don't need it I think.

Simon

> and of course I rebuilt the package, and (of course) that just don't
> work, despite tetex is listed among the Obsoleted packages :
> $ rpm -qp --obsoletes texlive-20110312-0phn.x86_64.rpm
> dvi2tty <= 5.3.1
> jadetex
> kpathsea <= 20100722
> kpathsea-devel <= 20100722
> kpathsea-static-devel <= 20100722
> pdfjam <= 1.21
> ps2eps <= 1.64
> tetex
> tetex-context
> tetex-devel
> tetex-dvipdfm
> tetex-dvips
> tetex-dvilj
> tetex-latex
> tetex-mfwin
> tetex-texi2html
> tetex-usrlocal
> tetex-xdvi
> etc...
> (tetex is the CentOS one : tetex-3.0-33.8.el5_5.6)
>
> Can someone explain me why this fails, and eventually an other way to
> solve this problem ?
>
> Thanks,
>
> --
> Philippe
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] the tag Obsoletes: in spec files

2011-05-31 Thread Philippe Naudin
Le mar 31 mai 2011 15:31:17 CEST, Simon Matter a écrit:

> > How exactly to use the tag "Obsoletes:" in a spec file ?
> >
> > I need to offer texlive to users on Centos-5.6, so I packaged it (based
> > on a Mandriva src.rpm), and that works.
> >
> > But I want rpm to *replace* tetex by texlive, instead of just adding
> > texlive, when users do a :
> > $ yum install texlive
> > (we have a local repo here).
> >
> > So I added this line in texlive.spec :
> > Obsoletes:  tetex
> 
> Does your package provide tetex? If not, use
> 
> Provides: tetex

Hello John and Simon,

And thanks for your answers !

Here is what I have tried :
Provides:   tetex = %{version}
Obsoletes:  tetex < %{version}

But it doesn't help, yum is ready to install texlive but doesn't
remove tetex.

tetex is required by :
$ rpm -q --whatrequires tetex
tetex-latex-3.0-33.8.el5_5.6
jadetex-3.12-15.el5
texinfo-tex-4.8-14.el5

jadetex and tetex-latex are also obsoleted/provided in the same way
than tetex, and texinfo-tex is happy working with texlive.

Other suggestions ?

-- 
Philippe
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Grep: show me this line and the next N lines?

2011-05-31 Thread Thomas Harold
On 5/31/2011 3:43 AM, Dotan Cohen wrote:
 > On Tue, May 31, 2011 at 01:26, John R. Dennison  wrote:
 >> On Tue, May 31, 2011 at 01:10:40AM +0300, Dotan Cohen wrote:
 >>> Thanks, all. I did actually look at the grep manpage but after a few
 >>> screenfuls it became tl;dr and I started just skimming. I suppose that
 >>> I skimmed too fast!
 >>
 >> Um
 >>
 >> It's the first option described.
 >>
 >
 > I see now that the server's grep manpage (CentOS) does in fact put it
 > right there at the top. I usually pull up manpages on localhost, not
 > what I'm SSHing into, and on this Debian-Derived distro it is buried
 > halfway down the third page of nine. That is interesting, and I'm sure
 > that there is a lesson to be learned from that!
 >

One help might be to use the slash key to search the man page.

/lines[enter]

Then use 'n' or 'N' to search forward/backward.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] the tag Obsoletes: in spec files

2011-05-31 Thread John Doe
From: Philippe Naudin 

> tetex is required by :
> $ rpm -q --whatrequires tetex
> tetex-latex-3.0-33.8.el5_5.6
> jadetex-3.12-15.el5
> texinfo-tex-4.8-14.el5
> and texinfo-tex is happy working with texlive.

Maybe he is happy with your texlive but he still says he requires tetex...
Did you try a yum with -v?

JD
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS-announce Digest, Vol 75, Issue 10

2011-05-31 Thread centos-announce-request
Send CentOS-announce mailing list submissions to
centos-annou...@centos.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-requ...@centos.org

You can reach the person managing the list at
centos-announce-ow...@centos.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of CentOS-announce digest..."


Today's Topics:

   1. CEBA-2011:0830 CentOS 5 i386 vsftpd FASTTRACK Update
  (Karanbir Singh)
   2. CEBA-2011:0830 CentOS 5 x86_64 vsftpd FASTTRACK   Update
  (Karanbir Singh)
   3. CEEA-RHEA-2011:0828 CentOS 5 x86_64 talk  FASTTRACK Update
  (Karanbir Singh)
   4. CEEA-RHEA-2011:0828 CentOS 5 i386 talk FASTTRACK  Update
  (Karanbir Singh)
   5. CEBA-RHBA-2011:0829 CentOS 5 i386 system-config-netboot
  FASTTRACK Update (Karanbir Singh)
   6. CEBA-RHBA-2011:0829 CentOS 5 x86_64   system-config-netboot
  FASTTRACK Update (Karanbir Singh)
   7. CEBA-RHBA-2011:0827 CentOS 5 i386 xinetd  FASTTRACK Update
  (Karanbir Singh)
   8. CEBA-RHBA-2011:0827 CentOS 5 x86_64 xinetdFASTTRACK Update
  (Karanbir Singh)


--

Message: 1
Date: Mon, 30 May 2011 21:19:45 +
From: Karanbir Singh 
Subject: [CentOS-announce] CEBA-2011:0830 CentOS 5 i386 vsftpd
FASTTRACK   Update
To: centos-annou...@centos.org
Message-ID: <20110530211945.ga10...@chakra.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Bugfix Advisory 2011:0830 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2011-0830.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( md5sum Filename ) 

i386:
93ebb6f3b7ebfcde83504322d19b3daf  vsftpd-2.0.5-21.el5.i386.rpm

Source:
37504a3d550e99ffe4bc33e34e5be587  vsftpd-2.0.5-21.el5.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, #cen...@irc.freenode.net



--

Message: 2
Date: Mon, 30 May 2011 21:19:45 +
From: Karanbir Singh 
Subject: [CentOS-announce] CEBA-2011:0830 CentOS 5 x86_64 vsftpd
FASTTRACK   Update
To: centos-annou...@centos.org
Message-ID: <20110530211945.ga10...@chakra.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Bugfix Advisory 2011:0830 

Upstream details at : https://rhn.redhat.com/errata/RHBA-2011-0830.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( md5sum Filename ) 

x86_64:
133947aae67f0b2d704e25165ad8aef0  vsftpd-2.0.5-21.el5.x86_64.rpm

Source:
37504a3d550e99ffe4bc33e34e5be587  vsftpd-2.0.5-21.el5.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, #cen...@irc.freenode.net



--

Message: 3
Date: Mon, 30 May 2011 21:22:33 +
From: Karanbir Singh 
Subject: [CentOS-announce] CEEA-RHEA-2011:0828 CentOS 5 x86_64 talk
FASTTRACK Update
To: centos-annou...@centos.org
Message-ID: <20110530212233.ga10...@chakra.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Enhancement Advisory RHEA-2011:0828 

Upstream details at : https://rhn.redhat.com/errata/RHEA-2011-0828.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( md5sum Filename ) 

x86_64:
0db3888c8fcc72733387622b8817ba9f  talk-0.17-31.el5.x86_64.rpm
79533414aa4112ef3166731c68293505  talk-server-0.17-31.el5.x86_64.rpm

Source:
bba2f7ce41e19e53dc46f6403dc5485f  talk-0.17-31.el5.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, #cen...@irc.freenode.net



--

Message: 4
Date: Mon, 30 May 2011 21:22:33 +
From: Karanbir Singh 
Subject: [CentOS-announce] CEEA-RHEA-2011:0828 CentOS 5 i386 talk
FASTTRACK   Update
To: centos-annou...@centos.org
Message-ID: <20110530212233.ga10...@chakra.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Enhancement Advisory RHEA-2011:0828 

Upstream details at : https://rhn.redhat.com/errata/RHEA-2011-0828.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( md5sum Filename ) 

i386:
22aa01d45827408695ce9549e9e18d25  talk-0.17-31.el5.i386.rpm
4a5d147f025f09c08d4bfeb39d6ef8ee  talk-server-0.17-31.el5.i386.rpm

Source:
bba2f7ce41e19e53dc46f6403dc5485f  talk-0.17-31.el5.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, #cen...@irc.freenode.net



--

Message: 5
Date: Mon, 30 May 2011 21:23:56 +
From: Karanbir Singh 
Subject: [CentOS-announce] CEBA-RHBA-2011:0829 CentOS 5 i386
system-config-netboot FASTTRACK Update
To: centos-annou...@centos.org
Message-ID: <20110530212356.ga10...@chakra.karan.org>
Content-Type: text

Re: [CentOS] the tag Obsoletes: in spec files

2011-05-31 Thread Gordon Messmer
On 05/31/2011 07:27 AM, Philippe Naudin wrote:
> But it doesn't help, yum is ready to install texlive but doesn't
> remove tetex.

Did you flush your yum cache after you rebuilt the package?  It may have 
old metadata.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] the tag Obsoletes: in spec files

2011-05-31 Thread Ljubomir Ljubojevic
Gordon Messmer wrote:
> On 05/31/2011 07:27 AM, Philippe Naudin wrote:
>> But it doesn't help, yum is ready to install texlive but doesn't
>> remove tetex.
> 
> Did you flush your yum cache after you rebuilt the package?  It may have 
> old metadata.
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 
> 
I had same problem a year or two ago. I wanted to obsolete integrated 
version 2.x for seamless install of OpenOffice 3.2. I created virtual 
package that Obsoletes old packages, but no dice.

Something is obviously wrong, and does not work like it should. I gave 
up and just removed old version and installed new one.

Ljubomir
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] about postfix

2011-05-31 Thread Alejandro Loayza
Hi,

Thank you all at first.

I've downloaded and installed postfix from CentosPlus couse i needed the
MySql support version of postfix, but i need to know if i've could have
problems if any new version it's been released from the official mirror of
the same pack, how can i handle the updates, witch the best way?.

Thank you so much again.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] about postfix

2011-05-31 Thread Christopher Chan
On Wednesday, June 01, 2011 08:51 AM, Alejandro Loayza wrote:
> Hi,
> Thank you all at first.
> I've downloaded and installed postfix from CentosPlus couse i needed the
> MySql support version of postfix, but i need to know if i've could have
> problems if any new version it's been released from the official mirror
> of the same pack, how can i handle the updates, witch the best way?.
> Thank you so much again.
>

I believe that the centos plus version of the postfix package has a 
different name and so any updates to the non-plus version will not 
affect you for that reason.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos