0

I was building from source a package which needed asciidoc on Ubuntu 19.10. Now I want to uninstall it but I get the following

Package 'asciidoc' is not installed, so not removed

while it is clearly installed. Why is that happening? How can I uninstall it?

1
  • 1
    Please add output of which asciidoc and dpkg -S $(which asciidoc) to the question.
    – N0rbert
    May 27, 2020 at 18:19

2 Answers 2

2

The main asciidoc executable in 18.04 LTS and newer versions is located in asciidoc-base package.

You have to remove it:

sudo apt-get purge asciidoc-base
1
  • 1
    Thanks, that is what I wanted!
    – Adam
    May 28, 2020 at 14:38
1

For source code installations, here are the install/uninstall commands...

Installing asciidoc for all users

Create configure using autoconf(1); use configure to create the Makefile; run make(1); build the man pages; install:

$ autoconf
$ ./configure
$ make
$ sudo make install

To uninstall:

$ sudo make uninstall

Source: http://asciidoc.org/INSTALL.html

Update #1

For binary installations...

dpkg -l *ascii* | grep ii

un asciidoc <none> <none> (no description available) 
ii asciidoc-base 8.6.10-3 all Minimal version of asciidoc not suitable for pdf 
ii asciidoc-common 8.6.10-3 all Basic data and configuration files for asciidoc un asciidoc-doc <none> <none> (no description available)

To completely uninstall asciidoc, you'll need to run all of these commands...

sudo apt-get purge asciidoc # already done

sudo apt-get purge asciidoc-base

sudo apt-get purge asciidoc-common
4
  • I haven't installed it from source, the command sudo apt purge asciidoc should work fine, but it doesn't.
    – Adam
    May 27, 2020 at 18:13
  • @Adam Show me dpkg -l *ascii* | grep ii.
    – heynnema
    May 27, 2020 at 18:22
  • @Adam Status please...
    – heynnema
    May 28, 2020 at 0:30
  • un asciidoc <none> <none> (no description available) ii asciidoc-base 8.6.10-3 all Minimal version of asciidoc not suitable for pdf ii asciidoc-common 8.6.10-3 all Basic data and configuration files for asciidoc un asciidoc-doc <none> <none> (no description available)
    – Adam
    May 28, 2020 at 14:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .