LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Deleted Root's .aptitude Folder (https://www.linuxquestions.org/questions/debian-26/deleted-roots-aptitude-folder-4175457062/)

carlosinfl 04-05-2013 10:16 PM

Deleted Root's .aptitude Folder
 
In working on my system today, I mistakenly deleted the /root/.aptitude folder sadly. I thought perhaps it was a cache directory for when I ran
Code:

apt-get update
however it didn't re-appear when I ran the command.

Did I hurt my Debian system? I don't use the actual application 'aptitude' at all since this Debian system doesn't have any kind of GUI and I simply run apt-get update'

jdkaye 04-06-2013 12:22 AM

On my Debian Wheezy/Sid system the /root/.aptitude folder contains 2 files: config, which is empty and cache. I don't believe cache is crucial since it hasn't been changed on my system since 2010 but I could be wrong.
Quote:

Did I hurt my Debian system? I don't use the actual application 'aptitude' at all since this Debian system doesn't have any kind of GUI and I simply run apt-get update'
I don't understand this statement. aptitude runs on the command line.
jdk

linuxgeek82 04-06-2013 08:42 AM

just reinstall it if you're worried about.

Code:

apt-get reinstall aptitude
you didn't hurt your system as this is not a system dependent application.

widget 04-06-2013 01:46 PM

Quote:

Originally Posted by linuxgeek82 (Post 4926263)
just reinstall it if you're worried about.

Code:

apt-get reinstall aptitude
you didn't hurt your system as this is not a system dependent application.

I have some doubts that this would do the trick.

That /root/.aptitude file is simply the user land config file for aptitude for the user root. If the OP is not using aptitude there is no problem.

If the OP used aptitude once that file should be recreated at that time.

Seeing that it was deleted the OP was logged in a root at the time. If logging in as root is common then that file should also regenerate when logging in as root.

This is a good example of why logging in as root is not encouraged. It is too easy to remove things that should be left alone. There is no damage done in this case but deleting files just because you don't know what they are for is not the way to find out.

evo2 04-15-2013 12:03 PM

Hi,

Quote:

Originally Posted by carlosinfl (Post 4926047)
In working on my system today, I mistakenly deleted the /root/.aptitude folder sadly.

It's been a while since I used aptitude, but on at least one of my systems I still had a ~/.aptitude/. It contains two files: "cache" and "config".
Quote:

I thought perhaps it was a cache directory for when I ran
Code:

apt-get update
however it didn't re-appear when I ran the command.
Anything in ~/.aptitude should be aptitude specific and unrelated to apt-get.

Quote:

Did I hurt my Debian system?
No, you just removed some cruft.

Evo2.

PS. Just now I intentionally deleted ~/.aptitude :-)


All times are GMT -5. The time now is 12:35 PM.