I read up on uninstalling programs and about the - -purge command but didn’t know how to combine it with the dbkg command.
To be honest, I don’t remember how I installed it gnucash on that machine. Sent from my iPhone > On May 10, 2018, at 8:30 PM, David Cousens <davidcous...@bigpond.com> wrote: > > Dennis, > > If you use the --purge switch with apt remove i.e. > > sudo apt-get remove gnucash > > it should remove those configuration files in /usr/etc and /usr/include and > /usr/share files as well. A post on AskUbuntu indicates that the --purge > switch does not remove configuration and data files in the user's home > directory. The man page on apt-get purge indicates it removes configuration > and data files but does not specify whether that is in the user's home > directory or not. I think apt on Linux Mint is somewhat similar to aptitude > on Ubuntu but at present I don't have Ubuntu running on a VM to test it out. > The user preference files are in /home/dennis/.gnucash for v 2.6. ( In V 3.1 > they are located in /home/dennis/.local/share/gnucash - conversion is > automatic on the first run of v3.1). If you rename the /home/dennis/.gnucash > directory to /home/dennis/.old-gnucash before using the "sudo apt remove > --purge gnucash" command and then rename them back to the original after > having done that, you can avoid any possibility of deleting the preference > files. > > The Ubuntu 16.04 distro appears to put its distribution version in > /usr as the prefix rather than /usr/local. > >> On Thu, 2018-05-10 at 16:02 -0400, Dennis Powless wrote: >> I was able to use the remove feature in Ubuntu Software..... however after I >> ran that, I did the whereis gnucash and this is the output. >> >> dennis@dennis-XPS-8500:~$ whereis gnucash >> gnucash: /etc/gnucash /usr/include/gnucash /usr/share/gnucash >> >> >> I then did >> sudo apt-get remove gnucash >> >> repeated whereis gnucash with same output. >> >> I don't have anything /gnucash in the lib directory >> >> Here is the output of the lib directory >> >> dennis@dennis-XPS-8500:/lib$ ls >> apparmor klibc-k3La8MUnuzHQ0_kG8hokcGAC0PA.so recovery-mode >> brltty ld-linux.so.2 resolvconf >> cpp ld-lsb.so.1 systemd >> crda ld-lsb.so.2 sysvinit >> firmware ld-lsb.so.3 terminfo >> hdparm linux-sound-base udev >> i386-linux-gnu lsb ufw >> ifupdown modprobe.d x86_64-linux-gnu >> init modules xtables >> >> >> Output of the ls on i386-linux-gnu >> >> dennis@dennis-XPS-8500:/lib/i386-linux-gnu$ ls >> ld-2.23.so libc-2.23.so libdl-2.23.so libnsl-2.23.so >> libnss_files-2.23.so libnss_nisplus.so.2 libresolv.so.2 >> libutil-2.23.so >> ld-linux.so.2 libcidn-2.23.so libdl.so.2 libnsl.so.1 >> libnss_files.so.2 libnss_nis.so.2 librt-2.23.so >> libutil.so.1 >> libanl-2.23.so libcidn.so.1 libgcc_s.so.1 >> libnss_compat-2.23.so libnss_hesiod-2.23.so libpcprofile.so >> librt.so.1 libz.so.1 >> libanl.so.1 libcrypt-2.23.so libm-2.23.so >> libnss_compat.so.2 libnss_hesiod.so.2 libpthread-2.23.so >> libSegFault.so libz.so.1.2.8 >> libBrokenLocale-2.23.so libcrypt.so.1 libmemusage.so >> libnss_dns-2.23.so libnss_nis-2.23.so libpthread.so.0 >> libthread_db-1.0.so >> libBrokenLocale.so.1 libc.so.6 libm.so.6 libnss_dns.so.2 >> libnss_nisplus-2.23.so libresolv-2.23.so libthread_db.so.1 >> >> >> >> I tried the dpkg optrion also >> >> dennis@dennis-XPS-8500:~$ sudo dpkg -r gnucash >> dpkg: warning: ignoring request to remove gnucash, only the config >> files of which are on the system; use --purge to remove them too >> >> >> Thanks for the help. >> >> BTW, I can't find gnucash in unity. >> >> Dennis >> >> >> >> >> >>> On Thu, May 10, 2018 at 10:56 AM, John Ralls <jra...@ceridwen.us> wrote: >>> >>> >>> > On May 9, 2018, at 3:19 PM, DaveC49 <davidcous...@bigpond.com> wrote: >>> > >>> > Dennis >>> > >>> > It is probbaly a good idea to uninstall the previous build of 2.6.x before >>> > upgrading. With the changes between 2.6 and 3.1 there may have been >>> > changes >>> > in the libraries/library names such that some older libraries may not >>> > necessarilybe overwritten. >>> > >>> > How to remove it will depend upon how you installed it and in which >>> > location >>> > you installed it. If you built it from sources and you have retained the >>> > source directory, try changing to the top level source directory or a >>> > build >>> > directory if there is one in a terminal and then type >>> > >>> > make uninstall >>> > >>> > if it was installed under your home directory >>> > >>> > or sudo make uninstall >>> > >>> > if it was installed to a system directory like /usr/local or/opt. >>> > >>> > If you didn't retain the source directory and/or build directory then >>> > things >>> > get a bit harder. One strategy would be to download the sources for that >>> > version again. Follow the instructions for buidling that version apart >>> > from >>> > the "make install" or "sudo make install" at the end. This will recreate a >>> > manifest file. Then issue the "make install" or "sudo make install" in the >>> > top level source directory (if you built them with a build directory then >>> > issue the command in that build directory.) Both Cmake and autotools can >>> > be >>> > used on the later 2.6.x versions. >>> > >>> > You can tell where Gnucash is installed using >>> > whereis gnucash >>> > in a shell to list the locations that gnucash was installed to. If the >>> > first >>> > part of the path is /usr/local or /opt or another system location ( that >>> > is >>> > one not under the /home/dennis tree) then you will need to use sudo as a >>> > prefix to make uninstall. I am not sure if whereis locates installs under >>> > your home directory however. >>> > >>> > >>> > If you installed using apt then >>> > >>> > sudo apt-get remove gnucash >>> > should do the job. >>> > >>> > If you installed from a debian package you downloaded >>> > >>> > sudo dpkg -r gnucash >>> > >>> > should also remove it >>> > >>> > There are instructions on the >>> > >>> > The BuildUbuntu16.04 wiki page has a section for Uninstalling Gnucash as >>> > above. It also has a link and a link to another which has instructions >>> > for >>> > manually removing Gnucash. I need to add more to that page but the manual >>> > removal instructions there do work. Note you need to use sudo before any >>> > commands if installed in a system location. >>> > >>> > I would try the instructions above first however as manually deleting >>> > things >>> > from system directories >>> > can be hazardous to your system. >>> >>> You can clear enough to get a clean build by deleting >>> <prefix>/<lib>/gnucash, where <prefix> is the root of the installation--the >>> parent of bin/, etc/, <lib>/, and share/. <lib> is whatever your system >>> calls its library directory: In the old days it was just lib/, but some >>> systems use lib64/ and some use lib/x86_64-gnu-linux or something similar. >>> For example, if you’re installing into $HOME/.local and lib isn’t mangled >>> on your system, >>> rm -rf $HOME/.local/lib/gnucash >>> will delete all of the loadable modules and precompiled guile modules so >>> they don’t interfere with the build. >>> >>> Regards, >>> John Ralls >>> _______________________________________________ >>> gnucash-user mailing list >>> gnucash-user@gnucash.org >>> To update your subscription preferences or to unsubscribe: >>> https://lists.gnucash.org/mailman/listinfo/gnucash-user >>> If you are using Nabble or Gmane, please see >>> https://wiki.gnucash.org/wiki/Mailing_Lists for more information. >>> ----- >>> Please remember to CC this list on all your replies. >>> You can do this by using Reply-To-List or Reply-All. >>> >> _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information. ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.