LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Keeping track of installs and where everything goes... (https://www.linuxquestions.org/questions/linux-newbie-8/keeping-track-of-installs-and-where-everything-goes-558815/)

tcv 06-03-2007 10:18 AM

Keeping track of installs and where everything goes...
 
I think it's probably true that since I'm so new to Linux this stymies me so much...

I have been playing a lot with setting things up, taking things down, and moving things here and there. I am getting nervous about system cruft.

For instance, when I install a package in Ubuntu, the package installer doesn't really tell me all that it's doing and while I can remove it, I never know if it removes _everything._

And what about make installs? I know how to remove the temp files, but what if I want to remove a compiled application? How can I be sure I'm removing all of it.

I'm curious as to how others deal with these things?

Cheers,

Mike...

pixellany 06-03-2007 10:28 AM

Quote:

I'm curious as to how others deal with these things?
Mostly, I don't worry about it. When things get too balled up, I just move to a different distro ......;)

For those who are a bit tidier:
First, the package manage SHOULD maintain order--eg automatically deleting /overwriting the old stuff.

searching on the name of the application usually reveals all the relevant files.

tcv 06-03-2007 10:53 AM

Aaah, but how does one even keep track of stuff they installed, say, eight months ago?

I suppose the easy answer is a text file named, "System Changes."

m

ethics 06-03-2007 02:08 PM

Arch uses pacman, i can run
Code:

pacman -Q > packages.txt
to get a list of installed packages, i can also use it to install/uninstall and i can check the website for dependencies. Works fine for me. Also has the AUR to create packages from source and install via pacman, to keep track of em.

Depends on your distros package manager

b0uncer 06-03-2007 02:22 PM

Every package manager should be able to list contents of a package, in Ubuntu it's very easy trough Synaptic for example. If you know which package you want to query, you can query it to see what files are inside, and if the system is smart enough, it tells where the files were installed. This is true for binary packages, if it was unclear. If you remove a package in Ubuntu, the basic removal doesn't remove config files (usually); that's because if you later install it again, you don't lose your settings. To remove everything the package installs, use the purge option (that's the way to go with other package managers too than apt, I guess).

Source code software is another thing. With binary packages the tracking and removal of installed files is easy, as that all can be done and set in the package information, and since it's a binary package, it stays so. A list can be created during the package creation and that list can be used when the package is removed. If you compile source code, however, the result depends on multiple things like prefix and other configuration options. There's no one single way to remove everything; "make uninstall" works for some, some have an uninstallation script of their own. Then there is software that you use when running the final step, usually "make install", of a source code project: I don't remember it's name (but you'll find it with google or altavista or something) but basically it keeps an eye of what "make install" step does, creates a "log" about it and when you want to remove the installed stuff, you run the program with the created "log" file and it uses that information to remove all stuff no matter where on the system they were copied. Basically a reverse "make install", except that it's "third-party", not something that comes with every source code project. Also I'm not sure where it's limits are, i.e. what kind of compilation+installs it can handle, but last time I read it sound great.

sumguy231 06-03-2007 06:34 PM

Just a brief note - you're right, removing a package leaves some things behind, like configuration files. If you want to remove everything, drop the the command line and issue an 'apt-get --purge remove <package>'.

Quote:

And what about make installs? I know how to remove the temp files, but what if I want to remove a compiled application? How can I be sure I'm removing all of it.
Look into the 'checkinstall' package which makes your package manager aware of things you install by compilation, allowing you to easily uninstall it.


All times are GMT -5. The time now is 01:26 PM.