Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-26-2003, 03:39 AM   #1
Registered: Aug 2003
Distribution: Debian, Ubuntu
Posts: 188

Rep: Reputation: 30
Uninstall / deleting files


I did a lot try'n'error to get familiar with Linux (and we are big friends now).
That means, I have installed a lot of unnecessary RPMs, did (partly malfunctionally) third party scripts and compiled some tools, not knowing what I do and even not needing that tools ;-)

I know, that RPM keeps installed files in a database, but I strongly believe, that not all RPM-packages update this database.
And programs, that I have compiled, install themselves via make install. Is there any way to make uninstall, if I deleted, what I built?

What I mean, how does someone, who knows Linux better than me, keep track of files he installs, and, perhaps, how does this guy decide what files are necessary and what files can be removed. Even when those files are installed by someone else.

Thanks a lot and thanks in advance,
Clemens von Musil
Old 08-26-2003, 03:43 AM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Usually Installs are pretty clean and keep things in their directories in /usr. Check it out especially /usr/share.

As for removing rpms I'm sure you already know rpm -e.

For me, keeping track isn't difficult cuz I use apt-get remove --purge. I don't install much that I have to build and then I make sure it goes into /usr/local So I can easily track things down.
Old 08-26-2003, 04:36 AM   #3
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30

for things you comiled yourself :

go to the src dir and type in make uninstall

this will remove any installed files, and you can delete the src folder with confidence.
Old 08-26-2003, 11:04 AM   #4
Senior Member
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
Is a apt a Debian only command?
Old 08-26-2003, 11:11 AM   #5
LQ Newbie
Registered: Aug 2003
Location: Jamaica
Distribution: rh,mandrake
Posts: 6

Rep: Reputation: 0
Originally posted by Jongi
Is a apt a Debian only command?
It was once, but now you can get it for most any distro. Just check the apt pages for your supported distro/kernel.
Old 08-26-2003, 11:43 AM   #6
Registered: Aug 2003
Distribution: Debian, Ubuntu
Posts: 188

Original Poster
Rep: Reputation: 30
I found following page for apt and Redhat:

I didn't have the time to go into the thing, but it seems to provides apt as RPMs for Redhat >= 7.2
The site is written in german, but there is not much text to read, and I saw a link to english content.

Clemens von Musil
Old 08-26-2003, 01:00 PM   #7
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
For apt for Redhat check:



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
Deleting files in C monil Programming 4 03-13-2005 11:33 AM
Deleting files! a_priebe47 Slackware 6 10-17-2004 10:58 PM
Deleting files ShakyJake Linux - Newbie 12 05-08-2003 04:07 PM
Deleting directories with files in them AMDPwred Linux - General 7 02-16-2003 01:06 PM
Deleting files Tingle Linux - Newbie 4 01-16-2003 05:19 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:20 PM.

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