LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-21-2009, 08:22 AM   #1
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Rep: Reputation: 23
apt-get log?


I have a small VPS account which uses debian lenny and the basic vim package sucks (no syntax highlighting, etc) so I installed "vim-full", which then installed a whole slew of stuff for the gnome/gtk/gui version, which is obviously pointless since I cannot make use of a GUI on a remote system.

So I used apt-get --purge remove vim-full but this does not get anywhere close to removing the 175mb of stuff that were installed, which I guess makes sense since those are likely to be dependencies for a lot of other things that I can't use.

Now I have a couple of questions:
1) Is there an apt-get log so I can go back and tediously uninstall all that tish? (Lesson: next time pipe output to file) I'm going to google around about the list of installed packages, which must exist, but a log would be great to know about...
2) Does anyone know if there is a vim package without the GUI that doesn't suck, or do I have to build from source?

five minutes later... Wow, I just began removing the stuff one by one starting with dbus and eject (now why would I need that for syntax highlighting ;P) and got this message:
Code:
The following packages were automatically installed and are no longer required:
[...long list...]
Use 'apt-get autoremove' to remove them.
Which I did, and *presto*, 163mb gone -- which since dbus was 10, that should do it! Awesome! Beautiful! Great job with apt-get by debian! I'm a long time fedora user and I gotta say this is much much nicer than "rpm" IMO. Of course I've never bothered with "yum" so maybe that's not fair...I guess I should check that out too (sheepish grin).

Still looks like I'm stuck building vim on the remote system tho and I don't know if there is enough memory there for that...

Last edited by mk27; 07-21-2009 at 08:35 AM.
 
Old 07-21-2009, 08:30 AM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,887
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
try doing apt-get autoremove but keep an eye on what it wants to remove.
 
Old 07-21-2009, 08:40 AM   #3
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by craigevil View Post
try doing apt-get autoremove but keep an eye on what it wants to remove.
Yup, that happened pretty quick (see my edit of the OP if you're interested).
 
Old 07-21-2009, 08:50 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
/var/log/dpkg.log

You probably have "vim-tiny" installed. Try installing "vim".
 
Old 07-21-2009, 09:05 AM   #5
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by AlucardZero View Post
/var/log/dpkg.log

You probably have "vim-tiny" installed. Try installing "vim".
That's what I thought at first too but when I did an "apt-cache search vim" there was no vim-tiny, so I figured I needed vim-full. Does apt-cache search only show uninstalled packages?

Anyway, correct you are! So thanks, that saved me some time.

And thanks for the log tip too.
 
Old 07-21-2009, 10:08 AM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,887
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
vim Depends: vim-common (= 2:7.2.148-2), vim-runtime (= 2:7.2.148-2), libacl1 (>= 2.2.11-1), libc6 (>= 2.3.4), libgpm2 (>= 1.20.4), libncurses5 (>= 5.6+20071006-3), libselinux1 (>= 2.0.59)
Suggests: ctags, vim-doc, vim-scripts

apt-cache search vim
vim - Vi IMproved - enhanced vi editor
vim-addon-manager - manager of addons for the Vim editor
vim-common - Vi IMproved - Common files
vim-dbg - Vi IMproved - enhanced vi editor (debugging symbols)
vim-doc - Vi IMproved - HTML documentation
vim-gnome - Vi IMproved - enhanced vi editor - with GNOME2 GUI
vim-gtk - Vi IMproved - enhanced vi editor - with GTK2 GUI
vim-gui-common - Vi IMproved - Common GUI files
vim-latexsuite - view, edit and compile LaTeX documents from within Vim
vim-lesstif - Vi IMproved - enhanced vi editor - with LessTif GUI
vim-nox - Vi IMproved - enhanced vi editor
vim-runtime - Vi IMproved - Runtime files
vim-scripts - plugins for vim, adding bells and whistles
vim-syntax-gtk - Syntax files to highlight GTK+ keywords in vim
vim-tiny - Vi IMproved - enhanced vi editor - compact version
 
Old 07-21-2009, 11:22 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
1) dpkg log
# cat /var/log/dpkg.log | grep "\ installed\ "
The file with the latest packages, installed, is /var/log/dpkg.log
The next file in the 'history' is 'dpkg.log1'
And further back the files are e.g. 'dpkg.log2.gz' and readable
with : zcat /var/log/dpkg.log.2.gz | grep "\ installed\ "
2)
ls -tl /var/lib/dpkg/info/ | less
.....
 
  


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
Can Samhain log my entries in /var/log/secure and /var/log/mesage to a central server abefroman Linux - Software 2 04-13-2008 04:13 PM
Opennms Logs - where are web.log, web_rtc.log and webauth.log referenced? not_much_of_a_guru Linux - Networking 0 07-12-2006 10:28 AM
Apt-Get Log brianthegreat Ubuntu 2 02-22-2006 02:11 PM
can't find log for apt-get updates farpoint Debian 2 05-03-2005 09:07 AM
Log Files after running apt-get reyemarr Debian 1 12-08-2003 03:31 PM

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

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