LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-28-2021, 08:14 AM   #1
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Rep: Reputation: Disabled
Package tracker, installation tracker, program tracker for linux


I often have problem with uninstalling packages installed not by pamac and pacman.

The reason being:

eg1:
For example, i have OBS software installed, it runs good, but once it crashed, i can not launch the software anymore. Even when i uninstalled OBS and reinstalled, I still can't launch it.. This proved there are some settings stored on my pc that is not removed even when i uninstalled the software. But i can't find the setting to wipe out so that i can have a clean installation of the OBS software.

eg2:
I recently install grive2 package to access google drive.. After build it, i realized it does not have the function that i need. But there is no "uninstall" for grive2. Why should i keep all those junk on pc since i won't be using grive2 anymore..

Hence i think i need to install a installation tracker for all software installed on linux be it manual installation , build ....etc. This will facilitate "uninstallation" process in the future.


If anyone know one, please share with me.
Thanks.
 
Old 02-28-2021, 08:30 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Your OBS. You haven't understood the structure and locations in filesystem hierarchy. Settings can be stored, yes, and configuration files may be not tracked by package manager. In short, systemwide configuration which applies to all users goes to /etc/* and is not user editable, root only manages that. User configuration for same application goes to his/her home directory, it can't be elsewhere, user has no write rights outside of home directory. When you ran your OBS it wrote into your home directory its setting and maybe also its status when exiting. Most applications put their conf into ~/.config/ - so this is the place to look first. See also 'man hier'.

Edit: You may also want to check the tmp directory, some cruft may be left there when an application crashes. Uninstalling and reinstalling is complete waste of time, it is an invalid approach, learned from that other operating system.

Last edited by Emerson; 02-28-2021 at 08:36 AM.
 
1 members found this post helpful.
Old 02-28-2021, 08:50 AM   #3
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by andrewysk View Post
If anyone know one, please share with me.
There are several, but all of them require some learning on your part in order to successfully use them.

To track changes in /etc I'm using etckeeper.

When I install anything to /usr/local (haven't done this in a long time), I do it using GNU stow.

Some use checkinstall for this (but I wouldn't recommend it to inexperienced users, and experienced ones don't need it, anyway).

There are tools that facilitate putting user home directory (or only dotfiles therein) under Git control (homesick, vcsh).

There are also tools like unburden-home-dir.

And so on.

Last edited by shruggy; 02-28-2021 at 08:56 AM.
 
1 members found this post helpful.
Old 02-28-2021, 08:53 AM   #4
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Your OBS. You haven't understood the structure and locations in filesystem hierarchy. Settings can be stored, yes, and configuration files may be not tracked by package manager. In short, systemwide configuration which applies to all users goes to /etc/* and is not user editable, root only manages that. User configuration for same application goes to his/her home directory, it can't be elsewhere, user has no write rights outside of home directory. When you ran your OBS it wrote into your home directory its setting and maybe also its status when exiting. Most applications put their conf into ~/.config/ - so this is the place to look first. See also 'man hier'.

Edit: You may also want to check the tmp directory, some cruft may be left there when an application crashes. Uninstalling and reinstalling is complete waste of time, it is an invalid approach, learned from that other operating system.

Thank you. Your info is super valuable to me, i will look into it.. Thank you.

Can you also tell me thing like grive2 (google drive sync cli tool), where could it reside in ? so that i can wipe it off ?
If i wipe it off , will it leaves behind something in system some where ? for example when i remove the executable file from my system, when i type "$grive" into my terminal, will it prompts something like "can't find executable file" (which means there are some cruft left..) ? which is something often happened in windows os when we remove the *.exe file manually ..
 
Old 02-28-2021, 08:59 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by andrewysk View Post
when i type "$grive" into my terminal, will it prompts something like "can't find executable file" (which means there are some cruft left..) ?
That message doesn't necessary means there's some cruft left. It only means the shell cannot find an executable of the name you provided.

Last edited by shruggy; 02-28-2021 at 09:04 AM.
 
Old 02-28-2021, 10:19 AM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
andrewysk,

the standard location for applications you build from source is /usr/local/*, executable goes to /usr/local/bin/, your grive2 went there. You can safely delete everything you find there, it won't affect the normal operation of your distro, this location is not used by distro package manager.
 
1 members found this post helpful.
Old 02-28-2021, 12:48 PM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,327

Rep: Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481
Quote:
If i wipe it off , will it leaves behind something in system some where ? for example when i remove the executable file from my system, when i type "$grive" into my terminal, will it prompts something like "can't find executable file" (which means there are some cruft left..) ? which is something often happened in windows os when we remove the *.exe file manually ..
There are several places to look for user specific configs, and all are located in or under your $HOME.

Try .local/share, .config, .cache, and a dot file or directory with the name of the app. Beyond that you might need to search a little more but it will be there. Exactly where depends upon the app itself.

Last edited by computersavvy; 02-28-2021 at 12:51 PM.
 
1 members found this post helpful.
Old 02-28-2021, 02:05 PM   #8
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Thank you everybody. Appreciate your input. I will have to do my part now with all the info i got from you. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] Package Tracker figleaf08 Linux - Newbie 14 04-30-2020 12:33 AM
cannot find libmysqlclient.so when installing Request Tracker Ticketing program SmokeMonkey Linux - Software 5 06-16-2004 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration