HOWTO


# Exuberant Ctags 5.8 (2009-07-09)
# ===================
# Exuberant Ctags has not had a release since 2009.  There are other options
# such as Universal Ctags:
# https://ctags.io/ | https://github.com/universal-ctags/ctags
# https://github.com/freebsd/freebsd-src/tree/main/usr.bin/ctags
# Wikipedia: Ctags

# Slackware 14.0, 14.1, 14.2, 15.0: vim package includes ctags 5.8
#
# vim and ctags are both included in the Slackware 'vim' and 'xvim'
# (< 11.0), 'vim-gvim' (>= 11.0) packages

# If you ever want to uninstall Ctags, skip down to the bottom for
# instructions

# SourceForge: Exuberant Ctags project
# [Ctags] Ctags-5.8 released
# slackware64-current source 'vim'

# Get it
cd
test -f installed/ctags-5.8.tar.gz && mv installed/ctags-5.8.tar.gz .
test ! -f ctags-5.8.tar.gz &&
wget https://downloads.sf.net/ctags/ctags-5.8.tar.gz

# Verify tarball w/ sha256sum:
# (this comes from me, only proves that yours is the same as mine)
echo "0e44b45dcabe969e0bbbb11e30c246f81abe5d32012db37395eb57d66e9e99\
c7  ctags-5.8.tar.gz" | sha256sum -c

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "ctags-*" -exec rm -r {} \;
tar xzvf ~/ctags-5.8.tar.gz
cd ctags-5.8
test $UID = 0 && chown -R root:root .

# You no longer get the etags links by default, to enable that pass
# --enable-etags to configure
#
# To see the other options, run './configure --help'

# Configure the build
./configure --prefix=/usr --mandir=/usr/man

# Build it
make

# Become root to install it
su

# ctags is part of the 'vim' package(s) along with vim itself.  If you were
# to remove the vim/xvim/vim-gvim packages, as you might if you were
# upgrading vim, you would loose ctags also.
#
# If you are planning on installing vim from source after this, remove the
# vim Slackware packages:
# test -x /sbin/removepkg && /sbin/removepkg vim xvim vim-gvim
#
# Otherwise, only remove old Ctags files:
rm -f /usr/bin/ctags /usr/man/man1/ctags.1* \
/usr/bin/etags /usr/man/man1/etags.1*
find /usr/doc -maxdepth 1 -mindepth 1 -type d -name "ctags-*" \
-exec rm -r {} \;
test -d /usr/doc/ctags && rm -r /usr/doc/ctags
rm -f /usr/man/man1/ctags.1* /usr/man/man1/etags.1*

# Install it
make install

# Make sure your non-root user can remove it later
chown -R $(logname) .
chmod -R u+w .

# Become yourself again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/ctags-*.tar.gz
mv ctags-5.8.tar.gz installed/


# If you ever want to uninstall Exuberant Ctags, this should do it:
cd
su
test -d src/ctags-* && ( cd src/ctags-* ; make uninstall )
( cd /usr/bin ; rm -f ctags etags )
find /usr/doc -maxdepth 1 -type d -name "ctags-*" -exec rm -r {} \;
( cd /usr/man/man1 ; rm -f ctags.1* etags.1* )
rm -f /usr/include/readtags.h /usr/lib/readtags.o
exit
find ~/src -maxdepth 1 -type d -name "ctags-*" -exec rm -r {} \;
rm -f ~/installed/ctags-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2024-05-15 2:22pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]