NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [newbie] replacing applications in the Base set?

On Mon, Aug 17, 2009 at 06:12:43PM +0200, Shadi Abou-Zahra wrote:
> Longer:
> - I'm trying to update some of the applications in the Base set to
> the latest versions. For instance OpenSSH, Postfix, or others. I
> installed the corresponding packages using pkgsrc and now have two
> installations (in /usr/bin and /usr/pkg/bin or in /usr/sbin and
> /usr/pkg/sbin). How does one get rid of the older versions in
> /usr/bin and /usr/sbin?

        Just leave 'em. :)

        There is no straightforward way to do that.  You could do an own
        build and set MKPOSTFIX=no but that's just not worth the hustle.
        If you run Postfix from pkgsrc, make sure you've adjusted /etc/
        mailer.conf and /etc/rc.conf.d/postfix (if you want to use the
        existing postfix rc-script---not the one from pkgsrc)

        $NetBSD: MESSAGE.NetBSD,v 1.3 2007/07/11 12:25:53 martti Exp $

        If you are running NetBSD 1.5 (or newer), the existing /etc/rc.d/postfix
        can be forced to start ${PREFIX}/sbin/postfix instead of 
        by adding the following lines to /etc/rc.conf.d/postfix:

                start_cmd='${PREFIX}/sbin/postfix start'
                stop_cmd='${PREFIX}/sbin/postfix stop'
                reload_cmd='${PREFIX}/sbin/postfix reload'

        Please note that /etc/rc.conf.d/postfix does not exist by default so
        you need to create that file if you need to override the default 

        Also, check your PATH.  It should contain /usr/pkg/{,s}bin
        before /usr/{,s}bin.

   Petar Bogdanovic

Home | Main Index | Thread Index | Old Index