LinuxQuestions.org
Register a domain and help support LQ
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 05-06-2007, 05:29 AM   #1
jam222
Member
 
Registered: Feb 2004
Posts: 56

Rep: Reputation: 15
Package infromation


Hello

I am fairly new to Debian. I have got two questions and will be grateful if someone can help.

1) How do I get the list of packages installed on my PC. I have read APT HOW-TO but I cannot find the answer to this question. Is there any file which has got this infromation/

2) I am used to using coloured vim. When in my .vimrc I put "syntax on" I get the below error

319: Sorry, the command is not available in this version: syntax on
 
Old 05-06-2007, 05:45 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by jam222
Hello

I am fairly new to Debian. I have got two questions and will be grateful if someone can help.

1) How do I get the list of packages installed on my PC. I have read APT HOW-TO but I cannot find the answer to this question. Is there any file which has got this infromation
The package archives are in /var/cache/apt/archive but you may be better served by a gui frontend like synaptic (apt-get install synaptic).
Quote:
2) I am used to using coloured vim. When in my .vimrc I put "syntax on" I get the below error

319: Sorry, the command is not available in this version: syntax on
... and? Are colors supported in the terminal you are using?

See example:
http://www.stripey.com/vim/vimrc.html
 
Old 05-06-2007, 05:55 AM   #3
jam222
Member
 
Registered: Feb 2004
Posts: 56

Original Poster
Rep: Reputation: 15
I have tried looking at /etc/var/cache/apt/archive but it has got a file lock which is empty and the other is an empty directoy partial. I will try to install synaptic.

As far as I am aware terminal does support colours as I am getting directory listings in colour.
 
Old 05-06-2007, 07:49 AM   #4
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Blog Entries: 1

Rep: Reputation: 30
dpkg --get-selections will give a list of the currently installed packages, of course you can redirect the output to a file of your choice.

The package archive will be of little use if you have run apt-get clean or similar.

As for the vim question, I can only guess as I do not use vim (nano woohoo). I am fairly sure a standard debian installation contains the package vim-tiny. Which as the name suggests probably does not have a fully featured vim. Try and install vim or vim-full and see if that makes any difference.
 
Old 05-06-2007, 05:18 PM   #5
jam222
Member
 
Registered: Feb 2004
Posts: 56

Original Poster
Rep: Reputation: 15
Thanks for "dpkg --get-selections" and vim-tiny hint. I installed vim-full and the coulours were there.
 
  


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
LXer: Simple Package management with Synaptic Package Manager LXer Syndicated Linux News 0 12-05-2006 06:33 PM
getting hardware infromation sharma.kashyap Linux - General 2 11-10-2006 07:30 AM
synaptic package manager forcing me to delete a broken package mbman Linux - Software 6 04-25-2006 09:30 AM
message "Problem during installation: x package needed for (installed) x package frayed2 Linux - Newbie 1 04-24-2005 07:05 PM
installing an unstable package from debian's online package archive ganninu Debian 13 11-07-2003 03:00 PM


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