LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-05-2004, 01:45 AM   #1
moly82
Member
 
Registered: May 2003
Location: Genoa - ITALY
Distribution: Debian SID
Posts: 84

Rep: Reputation: 15
Debian apt-get question


hi all!

today I had a problem with the system fonts and to try to solve it I installed about 300MB of fonts with apt-get ( ). Then I understood that the problem was inside one configuration file, so all the fonts that I installed today are perfectly useless for me and I'd like to save some hard disk space by deleting them!

Is it possible to know all the packages I've installed today with apt-get? Is there a way to check it? Unfortunately I've already deleted all the packages inside /varcache/apt/archives....

please let me know!

bye all!
 
Old 02-05-2004, 09:19 AM   #2
MaleWithBrains
LQ Newbie
 
Registered: Jan 2004
Location: Massachusetts, USA
Distribution: Mepis
Posts: 18

Rep: Reputation: 0
Synaptic is a great package handling tool ( apt-get install synaptic )

just click on the INSTALLED tab on the pull down menu and voila, you see every package you have ever installed, then get rid of as many as you wish
 
Old 02-05-2004, 09:50 AM   #3
moly82
Member
 
Registered: May 2003
Location: Genoa - ITALY
Distribution: Debian SID
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by MaleWithBrains
Synaptic is a great package handling tool ( apt-get install synaptic )

just click on the INSTALLED tab on the pull down menu and voila, you see every package you have ever installed, then get rid of as many as you wish
thank you for the suggestion, I know synaptic but I didn't think about it.

do you know if it shows also the installation date of each package?

I'll check it tonight.

bye!
 
Old 02-05-2004, 10:07 AM   #4
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
From the command line:

dpkg -l | grep font

...for fonts and just dpkg -l.

I strongly recommend deb-orphan also.
 
Old 02-05-2004, 11:15 AM   #5
moly82
Member
 
Registered: May 2003
Location: Genoa - ITALY
Distribution: Debian SID
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by llamakc
From the command line:

dpkg -l | grep font

...for fonts and just dpkg -l.

I strongly recommend deb-orphan also.

I already know this command!!!

it's very similar to dpkg --get-selections...

...but what I need is different: I need one command that shows me also the installation date of each package!!!

Tonight I'm going to try synaptic, but I think that also this tool won't solve my problem


PS: what is deb-orphan???


byeeeeeeee
 
Old 02-05-2004, 11:58 AM   #6
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
It's actually deborphan (my bad)

Code:
[ken:ken](12:56pm)$ apt-cache show deborphan
Package: deborphan
Priority: optional
Section: admin
Installed-Size: 188
Maintainer: Peter Palfrader <weasel@debian.org>
Architecture: i386
Version: 1.5-17
Depends: libc6 (>= 2.3.2.ds1-4)
Recommends: dialog (>= 0.9b-20031207-1), apt
Filename: pool/main/d/deborphan/deborphan_1.5-17_i386.deb
Size: 37048
MD5sum: 283b1165dbf50c595e373480630ed907
Description: Find orphaned libraries
 deborphan finds "orphaned" packages on your system.
 It determines which packages have no other packages
 depending on their installation, and shows you a list of
 these packages. It is most useful when finding libraries,
 but it can be used on packages in all sections.
I am not sure how to remove packages based on date of installation though. Hopefully somebody will come by with an idea. Was synaptic helpful for that?
 
Old 02-05-2004, 12:09 PM   #7
moly82
Member
 
Registered: May 2003
Location: Genoa - ITALY
Distribution: Debian SID
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by llamakc
I am not sure how to remove packages based on date of installation though. Hopefully somebody will come by with an idea. Was synaptic helpful for that? [/B]
no

also synaptic doesn't show the installation date...

anyway, it doesn't matter, I will delete manually the packages that I can remember.. I hope to don't delete some system files!


thank you all anyway! but, if someone knows hot to do it, please let me know!

byeeeeee
 
Old 02-05-2004, 12:12 PM   #8
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
Well you can do the

dpkg -l | grep font > myfont.packages

then read through myfont.packages and delete them one at a time. You will want to have xfonts-base, xfonts-100dpi, xfonts-scalable, and (I like) msttcorefonts (plus anything else you deem important). Then just apt-get remove the rest in the package list.
 
Old 02-05-2004, 12:17 PM   #9
moly82
Member
 
Registered: May 2003
Location: Genoa - ITALY
Distribution: Debian SID
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by llamakc
Well you can do the

dpkg -l | grep font > myfont.packages

then read through myfont.packages and delete them one at a time. You will want to have xfonts-base, xfonts-100dpi, xfonts-scalable, and (I like) msttcorefonts (plus anything else you deem important). Then just apt-get remove the rest in the package list.
yel, I'm going to do like this!

thank you a lot
 
Old 02-05-2004, 06:32 PM   #10
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
FYI: nothing tracks the installation date of packages, apt doesn't, nor do any of the existing frontends

FYI, part deux: aptitude mops the floor with synaptic
 
Old 02-06-2004, 01:37 AM   #11
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by Strike
FYI: nothing tracks the installation date of packages, apt doesn't, nor do any of the existing frontends

FYI, part deux: aptitude mops the floor with synaptic
FWIW aptitude keeps a log in /var/log/aptitude that has the date of the operations performed and to the OP if you look at the dates of the files for the packages installed in /var/lib/dpkg/info/ you should be able to get the required information.
 
Old 02-06-2004, 03:03 AM   #12
moly82
Member
 
Registered: May 2003
Location: Genoa - ITALY
Distribution: Debian SID
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by HappyTux
FWIW aptitude keeps a log in /var/log/aptitude that has the date of the operations performed and to the OP if you look at the dates of the files for the packages installed in /var/lib/dpkg/info/ you should be able to get the required information.
very interesting thanks! unfortunetely I didn't know this thing about aptitude so I have enver used it before... I could try it against synaptic, let's see which is the best one!

I'll also look in the directory you wrote in order to find the installation dates... i'll let you know


bye and thanks again
 
Old 02-06-2004, 07:43 AM   #13
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Well smack me around and call me Sally ... aptitude does keep logs of that. It rocks even more than I thought
 
Old 02-06-2004, 10:13 AM   #14
moly82
Member
 
Registered: May 2003
Location: Genoa - ITALY
Distribution: Debian SID
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Strike
Well smack me around and call me Sally ... aptitude does keep logs of that. It rocks even more than I thought


I'd like to do like that but...

...unfortunately I didn't use aptitude to install the fonts... so I can install it now but it won't solve my problem, will it?

byeeeee
 
Old 02-06-2004, 02:04 PM   #15
moly82
Member
 
Registered: May 2003
Location: Genoa - ITALY
Distribution: Debian SID
Posts: 84

Original Poster
Rep: Reputation: 15
yes I have aptitude but I can't find the directory /var/log/aptitude

bye!
 
  


Reply



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
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
debian ppc apt-get help please (noob question) TheHushedCaskeT Linux - Software 1 03-12-2005 03:47 AM
apt-get question in debian dunkyb Linux - Software 4 02-01-2005 03:10 PM
Libranet Debian apt question craigdolson Debian 3 12-17-2003 08:19 PM
Debian apt question? augamecock Linux - Distributions 2 04-07-2002 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:27 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