Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.protocols.dns.bind > #15791

Re: Does 'make uninstall' work?

Path csiph.com!news.uzoreto.com!news.etla.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!usenet-its.stanford.edu!usenet.stanford.edu!not-for-mail
From "G.W. Haywood" <bind@jubileegroup.co.uk>
Newsgroups comp.protocols.dns.bind
Subject Re: Does 'make uninstall' work?
Date Thu, 28 May 2020 13:02:43 +0100 (BST)
Lines 53
Approved bind-users@lists.isc.org
Message-ID <mailman.457.1590667356.942.bind-users@lists.isc.org> (permalink)
References <alpine.DEB.2.21.2005281230460.23806@piplus.local.jubileegroup.co.uk>
NNTP-Posting-Host lists.isc.org
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset=US-ASCII
X-Trace usenet.stanford.edu 1590667378 19309 149.20.1.60 (28 May 2020 12:02:58 GMT)
X-Complaints-To action@cs.stanford.edu
To bind-users@lists.isc.org
Return-Path <bind@jubileegroup.co.uk>
X-Original-To bind-users@lists.isc.org
Delivered-To bind-users@lists.isc.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d= jubileegroup.co.uk; h=Cc:Date:From:From:In-Reply-To:Message-ID :MIME-Version:References:Reply-To:Subject:To:User-Agent; s=uk; bh=xzxXj7Bfp+O/nNX2oJ32eMjLYE7p2CLZlZZ9TRibUm8=; b=aZMkGC87iexo OJAkGb0TiK35Wr4WfXtZZpMY2HLUBkJrukEoOq7x48j7zC+ZUrCJaxPrN/uFm0+m 6orX1l/TBZ8ekM3o+NkzMz1AmfTzyQSLQuM625y79owSRtAh8WgA3UqSQ9BdyRsp oCj3iGhf85bfYqEBSwcLv3kQNqvxB2XyRSHXmoRQEl0/sAVcZC0Ww0zQpg3XvxIn z9YouGRqgXWaE46nDEAkrZ0CBGvb+1g7Zt5/goRvxAXF8+Uk/NmDaPvdY+/dbtf7 S/7+E/zKjDYYs6REvK8C4HGLeU3ETVIqo2dCxfJB25XcylSZQPHHBD8tm6WEg5j2 3xfPCziq4Q==
X-X-Sender ged@piplus.local.jubileegroup.co.uk
User-Agent Alpine 2.21 (DEB 202 2017-01-01)
X-Greylist-Delay WHITELISTED Local IP, transport not delayed by extensible-milter-6.891
X-Scanned-OK extensible-milter version 6.891 using ClamAV version [ClamAV 0.102.1/25825/Wed May 27 13:34:18 2020], clamd on IP [192.168.44.7] port [3313], [2974] bytes in [4.301s] at 2020-05-28 12:02:49Z
X-Spam-Status No, score=0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,KAM_COUK,SPF_HELO_PASS,SPF_PASS autolearn=disabled version=3.4.2
X-Spam-Checker-Version SpamAssassin 3.4.2 (2018-09-13) on mx.pao1.isc.org
X-BeenThere bind-users@lists.isc.org
X-Mailman-Version 2.1.29
Precedence list
List-Id BIND Users Mailing List <bind-users.lists.isc.org>
List-Unsubscribe <https://lists.isc.org/mailman/options/bind-users>, <mailto:bind-users-request@lists.isc.org?subject=unsubscribe>
List-Archive <https://lists.isc.org/pipermail/bind-users/>
List-Post <mailto:bind-users@lists.isc.org>
List-Help <mailto:bind-users-request@lists.isc.org?subject=help>
List-Subscribe <https://lists.isc.org/mailman/listinfo/bind-users>, <mailto:bind-users-request@lists.isc.org?subject=subscribe>
X-Mailman-Original-Message-ID <alpine.DEB.2.21.2005281230460.23806@piplus.local.jubileegroup.co.uk>
Xref csiph.com comp.protocols.dns.bind:15791

Show key headers only | View raw


Hi there,

On Thu, 28 May 2020, Nyamkhand Buluukhuu wrote:

> ...
> Does 'make uninstall' command work? I have a source folder remained.
> Or do I need to compile a newer version with a different prefix and make a link?
>
> Which one is the safest way? If make uninstall doesn't work, how do you guys upgrade your compiled bind?

I don't normally bother with 'make uninstall' for anything at all.

You could simply make a copy of the existing 'named' binary in a safe
place and when you run 'make install' it will (if you configured things
same as last time) overwrite your existing 'named' binary.  Of course
it will overwrite all the other BIND binaries too so this might not be
as safe as you would like it to be.

BIND releases in particular are very reliable and I don't even make a
safe copy of the 'named' binary when I build a new one.  I generally
leave the source tree from the previous version in my home directory
until I can see that the latest version is working.  If things went
wrong for some reason I could just change directory to the older one
and run 'make install' there to recover the earlier 'named' version.
Once a new version runs OK I delete the source tree for the old one.

Even if it was deleted it's very easy to recover it from the released
tarballs.  If you don't still have the source tree for the old version
now might be a good time to create it again and make sure that you can
still build the older version of the 'named' binary.  Of course you
don't need to run 'make install' for the old version but it might be
worth comparing the binary built by the 'make' step with the one that
you're running.

However since you ask for the safest way of doing things I suggest
that you first set up slave nameservers, if you do not already have
any, and make sure that your TTLs are sane - at least a few days.  My
slave servers are provided by Hurricane Electric.  I'm very happy with
their services.  If I break something on the master, or if one of a
hundred or possibly more other problems happens, then the slaves will
handle the load while I'm fixing it so isn't a big deal.

If you want to be able to run either version you could for example
configure the build process so that the old binary is somewhere like
/usr/sbin and the new one in /usr/local/sbin; then you can choose
which one runs in your startup scripts.  They will both use the same
configuration and data (in /etc/named.conf and /var/named/ or wherever
you have configured it to be).

-- 

73,
Ged.

Back to comp.protocols.dns.bind | Previous | Next | Find similar


Thread

Re: Does 'make uninstall' work? "G.W. Haywood" <bind@jubileegroup.co.uk> - 2020-05-28 13:02 +0100

csiph-web