LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-05-2013, 10:16 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Rep: Reputation: 73
Red face 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'
 
Old 04-06-2013, 12:22 AM   #2
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,549

Rep: Reputation: Disabled
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

Last edited by jdkaye; 04-06-2013 at 12:29 AM.
 
Old 04-06-2013, 08:42 AM   #3
linuxgeek82
LQ Newbie
 
Registered: Feb 2013
Distribution: Debian, Kali 1.0.3
Posts: 22

Rep: Reputation: Disabled
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.
 
Old 04-06-2013, 01:46 PM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,200

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Quote:
Originally Posted by linuxgeek82 View Post
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.
 
Old 04-15-2013, 12:03 PM   #5
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,202

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
Hi,

Quote:
Originally Posted by carlosinfl View Post
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 :-)
 
1 members found this post helpful.
  


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] how to make a link (user)folder that links to a root folder morganfreeman Linux - Server 6 01-14-2013 05:56 AM
Recover deleted folder makowka Linux - General 2 11-23-2012 08:05 AM
root-owned file is able to be deleted with my non-root account win32sux Linux - Security 3 11-18-2008 02:00 AM
Deleted Folder vkrishn1 Linux - General 3 11-17-2004 10:39 AM
can't deleted a folder! santasballz Linux - Newbie 2 02-22-2004 12:03 AM


All times are GMT -5. The time now is 08:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration