unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to uninstall Emacs?
@ 2015-04-08 18:29 Rodolfo Medina
  2015-04-08 18:30 ` J. David Boyd
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Rodolfo Medina @ 2015-04-08 18:29 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all.

I recently installed Emacs after downloading it from git repositories.  Suppose
I would like to uninstall it - I want to try how the Emacs distribution
provided by Debian works and then, perhaps, reinstall Emacs from git.  How can
I completely uninstall it?

Thanks for any help.

Rodolfo




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to uninstall Emacs?
  2015-04-08 18:29 Rodolfo Medina
@ 2015-04-08 18:30 ` J. David Boyd
  2015-04-08 18:35 ` Eli Zaretskii
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 14+ messages in thread
From: J. David Boyd @ 2015-04-08 18:30 UTC (permalink / raw)
  To: help-gnu-emacs

Rodolfo Medina <rodolfo.medina@gmail.com> writes:

> Hi all.
>
> I recently installed Emacs after downloading it from git repositories.  Suppose
> I would like to uninstall it - I want to try how the Emacs distribution
> provided by Debian works and then, perhaps, reinstall Emacs from git.  How can
> I completely uninstall it?
>
> Thanks for any help.
>
> Rodolfo

If you compiled and built it yourself with 'make install', go to the build
directory and try 'make uninstall'.

Dave




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to uninstall Emacs?
  2015-04-08 18:29 Rodolfo Medina
  2015-04-08 18:30 ` J. David Boyd
@ 2015-04-08 18:35 ` Eli Zaretskii
  2015-04-08 21:15 ` Bob Proulx
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2015-04-08 18:35 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Rodolfo Medina <rodolfo.medina@gmail.com>
> Date: Wed, 08 Apr 2015 18:29:07 +0000
> 
> I recently installed Emacs after downloading it from git repositories.  Suppose
> I would like to uninstall it - I want to try how the Emacs distribution
> provided by Debian works and then, perhaps, reinstall Emacs from git.  How can
> I completely uninstall it?

"make uninstall", of course.  Assuming you have the source tree for
the version you want to uninstall.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to uninstall Emacs?
  2015-04-08 18:29 Rodolfo Medina
  2015-04-08 18:30 ` J. David Boyd
  2015-04-08 18:35 ` Eli Zaretskii
@ 2015-04-08 21:15 ` Bob Proulx
  2015-04-09 19:54 ` Thien-Thi Nguyen
       [not found] ` <mailman.243.1428527741.904.help-gnu-emacs@gnu.org>
  4 siblings, 0 replies; 14+ messages in thread
From: Bob Proulx @ 2015-04-08 21:15 UTC (permalink / raw)
  To: help-gnu-emacs

Rodolfo Medina wrote:
> I recently installed Emacs after downloading it from git
> repositories.  Suppose I would like to uninstall it - I want to try
> how the Emacs distribution provided by Debian works and then,
> perhaps, reinstall Emacs from git.  How can I completely uninstall
> it?

Or you could simply try the Debian one without uninstalling your
version.  When you compile from git sources and 'make install' it will
install emacs into /usr/local/bin/emacs.  Since PATH includes
/usr/local/bin ahead of /usr/bin calling emacs calls your locally
compiled binary first.

To avoid this you can simply call the system packaged version
directly.  You can do this even with your locally compiled one
installed in /usr/local/bin.

  /usr/bin/emacs

Calling it specifically by that path will invoke the system packaged
version.  You can verify this by looking at the emacs version.  The
version is usually displayed near the bottom of the start up splash
screen.  If not (I customize mine away) you can ask it directly.

  M-x emacs-version

If you have customizations in your dot emacs file you can test the
stock system configuration with the -q option.  The -q option
instructs emacs not to load an init file.

  /usr/bin/emacs -q

Bob



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to uninstall Emacs?
@ 2015-04-09 13:20 Jorge
  0 siblings, 0 replies; 14+ messages in thread
From: Jorge @ 2015-04-09 13:20 UTC (permalink / raw)
  To: help-gnu-emacs

[Since I just subscribed, I do not have the original message to reply to]

To be able to easily uninstall Emacs, I installed it in a prefix.
Configure it with
$ ./configure --prefix=/usr/local/$emacs_version
Then when you type
$ sudo make install
it will install into the chosen prefix.  Then create symlinks into
/usr/local/bin
$ sudo ln -sirv $prefix/bin/* /usr/local/bin

Later, to uninstall:
$ sudo rm -rI $prefix
$ find -L -type l /usr/local/bin
<Review the list of broken links in /usr/local/bin.  Confirm you want
to remove them all>
$ sudo find -L -type l /usr/local/bin -exec rm {} +

Regards



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to uninstall Emacs?
@ 2015-04-09 13:41 Jorge
  0 siblings, 0 replies; 14+ messages in thread
From: Jorge @ 2015-04-09 13:41 UTC (permalink / raw)
  To: help-gnu-emacs

[Since I just subscribed, I do not have the original message to reply to]

To be able to easily uninstall Emacs, I installed it in a prefix.
Configure it with:
$ ./configure --prefix=/usr/local/$emacs_version
Then when you type:
$ sudo make install
it will install into the chosen prefix.  Then create symlinks into
/usr/local/bin:
$ sudo ln -sirv $prefix/bin/* /usr/local/bin

Later, to uninstall:
$ sudo rm -rI $prefix
$ find -L -type l /usr/local/bin
<Review the list of broken links in /usr/local/bin.  Confirm you want
to remove them all>
$ sudo find -L -type l /usr/local/bin -exec rm {} +

Regards



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to uninstall Emacs?
  2015-04-08 18:29 Rodolfo Medina
                   ` (2 preceding siblings ...)
  2015-04-08 21:15 ` Bob Proulx
@ 2015-04-09 19:54 ` Thien-Thi Nguyen
  2015-04-11 13:11   ` Rodolfo Medina
       [not found] ` <mailman.243.1428527741.904.help-gnu-emacs@gnu.org>
  4 siblings, 1 reply; 14+ messages in thread
From: Thien-Thi Nguyen @ 2015-04-09 19:54 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 687 bytes --]

() Rodolfo Medina <rodolfo.medina@gmail.com>
() Wed, 08 Apr 2015 18:29:07 +0000

   Suppose I would like to uninstall it

method 42:

At some point, an asteroid will hit the earth.  That may or
may not wipe out civilization as we know it, but if you move
your computer to the right place, it will surely uninstall
Emacs.  At that point, it really doesn't matter what remains.

-- 
Thien-Thi Nguyen -----------------------------------------------
  (if you're human and you know it) read my lisp:
    (defun responsep (type via)
      (case type
        (technical (eq 'mailing-list via))
        ...))
---------------------------------------------- GPG key: 4C807502

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to uninstall Emacs?
       [not found] <mailman.297.1428587209.904.help-gnu-emacs@gnu.org>
@ 2015-04-09 22:48 ` Emanuel Berg
  0 siblings, 0 replies; 14+ messages in thread
From: Emanuel Berg @ 2015-04-09 22:48 UTC (permalink / raw)
  To: help-gnu-emacs

Jorge <jorge13515@gmail.com> writes:

> To be able to easily uninstall Emacs, I installed it
> in a prefix. Configure it with: $ ./configure
> --prefix=/usr/local/$emacs_version Then when you
> type: $ sudo make install it will install into the
> chosen prefix. Then create symlinks into
> /usr/local/bin: $ sudo ln -sirv $prefix/bin/*
> /usr/local/bin
>
> Later, to uninstall: $ sudo rm -rI $prefix $ find -L
> -type l /usr/local/bin <Review the list of broken
> links in /usr/local/bin. Confirm you want to remove
> them all> $ sudo find -L -type l /usr/local/bin -exec
> rm {} +

On an aptitude system (e.g. Debian, the Ubuntus, and
so on) you don't have to bother uninstalling programs
because they are just binaries (and sometimes scripts)
that lie passively unless you invoke them: they are
put into their respective boxes in the filesystem and
do not interfere with other programs - they are also
small, so disk space shortage cannot be remedied that
way either.

The package manager is the best way to not have to
deal with the make, configure, and 'make install'
dance, and you don't have to fiddle the symlinks,
either.

Of course it is still possible to uninstall - sudo
aptitude remove - but that is mostly done (seldom)
when the upgrade/installation process has had some
dust in its machinery and you need to give it
a fresh start.

-- 
underground experts united
http://user.it.uu.se/~embe8573


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to uninstall Emacs?
       [not found] ` <mailman.243.1428527741.904.help-gnu-emacs@gnu.org>
@ 2015-04-09 23:07   ` Emanuel Berg
  2015-04-11 13:11     ` [solved] " Rodolfo Medina
  0 siblings, 1 reply; 14+ messages in thread
From: Emanuel Berg @ 2015-04-09 23:07 UTC (permalink / raw)
  To: help-gnu-emacs

Bob Proulx <bob@proulx.com> writes:

> Or you could simply try the Debian one without
> uninstalling your version. When you compile from git
> sources and 'make install' it will install emacs
> into /usr/local/bin/emacs. Since PATH includes
> /usr/local/bin ahead of /usr/bin calling emacs calls
> your locally compiled binary first.
>
> To avoid this you can simply call the system
> packaged version directly. You can do this even with
> your locally compiled one installed in
> /usr/local/bin.
>
>   /usr/bin/emacs
>
> Calling it specifically by that path will invoke the
> system packaged version. You can verify this by
> looking at the emacs version. The version is usually
> displayed near the bottom of the start up splash
> screen. If not (I customize mine away) you can ask
> it directly.
>
>   M-x emacs-version
>
> If you have customizations in your dot emacs file
> you can test the stock system configuration with the
> -q option. The -q option instructs emacs not to load
> an init file.
>
>   /usr/bin/emacs -q

Because of Jorge's smokescreens I got the impression
that I couldn't see the OP either, but now when I read
it this is the best answer. Mine is still correct in
principle tho :)

-- 
underground experts united
http://user.it.uu.se/~embe8573


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to uninstall Emacs?
  2015-04-09 19:54 ` Thien-Thi Nguyen
@ 2015-04-11 13:11   ` Rodolfo Medina
  0 siblings, 0 replies; 14+ messages in thread
From: Rodolfo Medina @ 2015-04-11 13:11 UTC (permalink / raw)
  To: help-gnu-emacs

Thien-Thi Nguyen <ttn@gnu.org> writes:

> () Rodolfo Medina <rodolfo.medina@gmail.com>
> () Wed, 08 Apr 2015 18:29:07 +0000
>
>    Suppose I would like to uninstall it
>
> method 42:
>
> At some point, an asteroid will hit the earth.  That may or
> may not wipe out civilization as we know it, but if you move
> your computer to the right place, it will surely uninstall
> Emacs.  At that point, it really doesn't matter what remains.

Yes, I agree! ;-)

Rodolfo




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to uninstall Emacs?
  2015-04-13 23:03           ` Bob Proulx
@ 2015-04-15  6:34             ` Rodolfo Medina
  0 siblings, 0 replies; 14+ messages in thread
From: Rodolfo Medina @ 2015-04-15  6:34 UTC (permalink / raw)
  To: help-gnu-emacs

Bob Proulx <bob@proulx.com> writes:

> Rodolfo Medina wrote:
>> Bob Proulx writes:
>> >   deb http://http.debian.net/debian jessie main contrib non-free
>> 
>> Thanks: in my sources.list I have the non-free section:
>> 
>>         deb http://ftp.debian.org/debian/ unstable main contrib non-free
>
> Oh!  You are running sid.  And using the truly global generic
> ftp.debian.org alias for klecker2.snt.utwente.nl.  AFAIK that is a
> single machine.  That isn't so good.
>
> It would be better to use the http.debian.net redirector service for a
> geographically dynamic redirection.  It is relatively new but has been
> proving itself very useful and robust.

Thanks, I'll do so.


> Additionally when running sid there are times when transitions occur
> and dependent packages are removed.  It is a best practice for sid
> users to also include testing too.  That way during transitions things
> generally continue to be intallable.  This is just one of the things
> that person running Sid Unstable is expected to know.  Because
> Unstable isn't recommended for people who don't.
>
> I recommend this for you for a generic Sid Unstable system.
>
>   deb http://http.debian.net/debian sid main contrib non-free
>   deb-src http://http.debian.net/debian sid main contrib non-free
>
>   deb http://http.debian.net/debian testing main contrib non-free
>   deb-src http://http.debian.net/debian testing main contrib non-free


Thanks.  The two last lines relatives to `testing' will be used by the system
only if the first two, relatives to `sid', should fail?


>> To do so, I should now:
>> 
>>  # aptitude purge emacs24
>>  # aptitude install emacs
>> 
>> ?
>
> No.  Do not purge 'emacs24' as the installation of 'emacs' would
> immediately install 'emacs24' again.  That would be silly.


I was referring to what you said:


> Additionally instead of installing "emacs24" directly it is better to
> install the "emacs" package.  That will always depend upon the best
> version available.  Previously it was emacs23.  In Jessie it is
> emacs24.  In this way emacs is automatically upgraded.  If only
> emacs24 is installed then the assumption is that you don't want to
> upgrade when emacs25 becomes available.

Thanks,

Rodolfo




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to uninstall Emacs?
  2015-04-12 11:34         ` Rodolfo Medina
  2015-04-13 23:03           ` Bob Proulx
@ 2015-04-18 21:08           ` Rodolfo Medina
  2015-04-18 22:27             ` Bob Proulx
  1 sibling, 1 reply; 14+ messages in thread
From: Rodolfo Medina @ 2015-04-18 21:08 UTC (permalink / raw)
  To: help-gnu-emacs

Rodolfo Medina <rodolfo.medina@gmail.com> writes:

> Bob Proulx <bob@proulx.com> writes:
>
>> Additionally instead of installing "emacs24" directly it is better to
>> install the "emacs" package.  That will always depend upon the best
>> version available.  Previously it was emacs23.  In Jessie it is
>> emacs24.  In this way emacs is automatically upgraded.  If only
>> emacs24 is installed then the assumption is that you don't want to
>> upgrade when emacs25 becomes available.
>
> To do so, I should now:
>
>  # aptitude purge emacs24
>  # aptitude install emacs


I did so, and seems all right.

Rodolfo




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to uninstall Emacs?
  2015-04-18 21:08           ` Rodolfo Medina
@ 2015-04-18 22:27             ` Bob Proulx
  2015-04-18 22:59               ` Rodolfo Medina
  0 siblings, 1 reply; 14+ messages in thread
From: Bob Proulx @ 2015-04-18 22:27 UTC (permalink / raw)
  To: help-gnu-emacs

Rodolfo Medina wrote:
> Rodolfo Medina writes:
> > Bob Proulx writes:
> > > Additionally instead of installing "emacs24" directly it is
> > > better to install the "emacs" package.  That will always depend
> > > upon the best version available.  Previously it was emacs23.  In
> > > Jessie it is emacs24.  In this way emacs is automatically
> > > upgraded.  If only emacs24 is installed then the assumption is
> > > that you don't want to upgrade when emacs25 becomes available.
> >
> > To do so, I should now:
> >
> >  # aptitude purge emacs24
> >  # aptitude install emacs
> 
> I did so, and seems all right.

The end result is okay but it wastefully removes emacs24 and then
immediately installs it again.  'emacs24' is a dependency of the
current 'emacs'.  Why remove what will be immediately re-installed?

See this for a more full answer and description:

  http://lists.gnu.org/archive/html/help-gnu-emacs/2015-04/msg00174.html

Additionally this too:

  http://lists.gnu.org/archive/html/help-gnu-emacs/2015-04/msg00178.html

Bob



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: How to uninstall Emacs?
  2015-04-18 22:27             ` Bob Proulx
@ 2015-04-18 22:59               ` Rodolfo Medina
  0 siblings, 0 replies; 14+ messages in thread
From: Rodolfo Medina @ 2015-04-18 22:59 UTC (permalink / raw)
  To: help-gnu-emacs

Bob Proulx <bob@proulx.com> writes:

> Rodolfo Medina wrote:
>> Rodolfo Medina writes:
>> > Bob Proulx writes:
>> > > Additionally instead of installing "emacs24" directly it is
>> > > better to install the "emacs" package.  That will always depend
>> > > upon the best version available.  Previously it was emacs23.  In
>> > > Jessie it is emacs24.  In this way emacs is automatically
>> > > upgraded.  If only emacs24 is installed then the assumption is
>> > > that you don't want to upgrade when emacs25 becomes available.
>> >
>> > To do so, I should now:
>> >
>> >  # aptitude purge emacs24
>> >  # aptitude install emacs
>> 
>> I did so, and seems all right.
>
> The end result is okay but it wastefully removes emacs24 and then
> immediately installs it again.  'emacs24' is a dependency of the
> current 'emacs'.  Why remove what will be immediately re-installed?


Maybe it was enough simply

 # aptitude install emacs

.  The reason to install `emacs' package having emacs24 already installed is
what you said above:


>> > > Additionally instead of installing "emacs24" directly it is
>> > > better to install the "emacs" package.  That will always depend
>> > > upon the best version available.  Previously it was emacs23.  In
>> > > Jessie it is emacs24.  In this way emacs is automatically
>> > > upgraded.  If only emacs24 is installed then the assumption is
>> > > that you don't want to upgrade when emacs25 becomes available.



> See this for a more full answer and description:
>
>   http://lists.gnu.org/archive/html/help-gnu-emacs/2015-04/msg00174.html
>
> Additionally this too:
>
>   http://lists.gnu.org/archive/html/help-gnu-emacs/2015-04/msg00178.html


Yes, it's our present thread.

Thanks,

Rodolfo




^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-04-18 22:59 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-09 13:20 How to uninstall Emacs? Jorge
     [not found] <mailman.297.1428587209.904.help-gnu-emacs@gnu.org>
2015-04-09 22:48 ` Emanuel Berg
  -- strict thread matches above, loose matches on Subject: below --
2015-04-09 13:41 Jorge
2015-04-08 18:29 Rodolfo Medina
2015-04-08 18:30 ` J. David Boyd
2015-04-08 18:35 ` Eli Zaretskii
2015-04-08 21:15 ` Bob Proulx
2015-04-09 19:54 ` Thien-Thi Nguyen
2015-04-11 13:11   ` Rodolfo Medina
     [not found] ` <mailman.243.1428527741.904.help-gnu-emacs@gnu.org>
2015-04-09 23:07   ` Emanuel Berg
2015-04-11 13:11     ` [solved] " Rodolfo Medina
2015-04-11 19:05       ` Bob Proulx
2015-04-12 11:34         ` Rodolfo Medina
2015-04-13 23:03           ` Bob Proulx
2015-04-15  6:34             ` Rodolfo Medina
2015-04-18 21:08           ` Rodolfo Medina
2015-04-18 22:27             ` Bob Proulx
2015-04-18 22:59               ` Rodolfo Medina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).