Command for searching through installed programs

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
stephenskocpol
Level 1
Level 1
Posts: 12
Joined: Mon Jun 27, 2011 8:25 am

Command for searching through installed programs

Post by stephenskocpol »

Hello everyone,

I'm new to Linux, installed Mint yesterday. So far, I must say I really like it. I like the many options I have, the interface looks nice, and it's a lot faster than my windows 7.

I discovered the 'apt' command in terminal. With it, I can install and remove programs, or search for programs to install.

I would like to see and search through the packages I have installed on my system. I can't seem to find any way to do that. Is there some subcommand within 'apt' or is there a completely different command I need to use?

Thanks in advance,
Stephen

Habitual
Level 13
Level 13
Posts: 4863
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: Command for searching through installed programs

Post by Habitual »

Code: Select all

dpkg --get-selections | grep -w install | cut -f1

User avatar
AdamS
Level 5
Level 5
Posts: 508
Joined: Sat May 28, 2011 10:47 pm
Location: Hinckley Utah USA

Re: Command for searching through installed programs

Post by AdamS »

There is a easier way.
Screenshot-9.png
Screenshot-9.png (169.62 KiB) Viewed 611 times
Proud owner of a 99.5 % Linux based Pc - laptop - netbook - tablet - networking business.
Do your self a favor, stop paying for imperfection. Once you know Linux, you never go back.

stephenskocpol
Level 1
Level 1
Posts: 12
Joined: Mon Jun 27, 2011 8:25 am

Re: Command for searching through installed programs

Post by stephenskocpol »

Habitual wrote:

Code: Select all

dpkg --get-selections | grep -w install | cut -f1
Thanks! Could someone maybe explain what exactly I'm typing here? That way I'll be able to learn and use it better! :D

User avatar
Elisa
Level 6
Level 6
Posts: 1356
Joined: Wed Aug 18, 2010 6:46 am

Re: Command for searching through installed programs

Post by Elisa »

BTW, when you wanna have an info of a concrete app (doesn't care if it's installed or not), try this:

aptitude show package_name


As for what's goin' on, simply:

pipe aka "|" is just a connector - joiner of the out-put, so =>

dpkg --get-selections | grep -w install | cut -f1

means =>

let the output of "dpkg --get-selections" is set aka is filtered yet with "grep -w install" and finally the last 'filter' then "cut -f1"

What individual commands do, read carefully:

man dpkg [and then look at the '--get-selections']
man grep [and then look at the -w]
man cut [and then look at the -f]

type those commands in a terminal to read them (man ...)
Linux/Unix is about freedom, Windows about slavery.

md5 / sha1 check [how-to for NEWBIES] :idea:

Score: 43 I have some hippie in me. Cool, man 8)
Take the elitemrp.net "Are you a Hippie?" Test

stephenskocpol
Level 1
Level 1
Posts: 12
Joined: Mon Jun 27, 2011 8:25 am

Re: Command for searching through installed programs

Post by stephenskocpol »

...And slowly but surely I will become more and more fluent in the terminal. Thanks everyone!

Habitual
Level 13
Level 13
Posts: 4863
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: Command for searching through installed programs

Post by Habitual »

It gets easier with time and experience, like everything else. :)

Affirmations like
stephenskocpol wrote:...I will become more and more fluent in the terminal...
definitely help you get better.

stephenskocpol
Level 1
Level 1
Posts: 12
Joined: Mon Jun 27, 2011 8:25 am

Re: Command for searching through installed programs

Post by stephenskocpol »

Habitual wrote:
Affirmations like
stephenskocpol wrote:...I will become more and more fluent in the terminal...
definitely help you get better.
Stating your goal does actually help you achieve it!

Habitual
Level 13
Level 13
Posts: 4863
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: Command for searching through installed programs

Post by Habitual »

Elisa:

That hippytest is funny.

Post Reply

Return to “Newbie Questions”