LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   how to find installed applications.. (https://www.linuxquestions.org/questions/gentoo-87/how-to-find-installed-applications-741801/)

debianD 07-21-2009 06:05 PM

how to find installed applications..
 
Hi,
I am ready with my Linux box. Now I was thinking to write my first "Hello World" in C on my gentoo.
1.Please suggest me a good editor. I want to learn maximum underhood so want to deal with CLI only.
2.How to find out what all default applications are installed.
I tried looking out for use.defaults,but I think every possible things are included in it and I don't have anything installed actually like emacs,vim etc
3.Is gcc already installed?

Please tokerate me I am a newbie.

Cheers!!

karamarisan 07-21-2009 06:26 PM

1. The CLI editor that you'll find easiest to use is nano. If you'd like something that's perhaps a bit more powerful, try vim (my favorite). emacs is the other big one; jokes are often made that emacs is not a great text editor but a great operating system with a text editor, etc. - it's very complex, but very capable. If you're up for a challenge, read up on how to use it.
2. Did some quick Googling and found that Gentoo includes a program called qpkg, which can be run with the -I option to get a list of all installed packages.
3. Try running it. If you get a 'command not found' message from your shell, nope; if it does anything else, yep. In the former case, try `emerge search gcc`, or Google "Gentoo install gcc" or something similar.

comprookie2000 07-22-2009 03:07 AM

To list all packages installed;
Code:

equery list
http://www.gentoo.org/doc/en/gentoolkit.xml
Gentoo is a sourced based distro so the toolchain is vital :)
http://www.gentoo.org/doc/en/gcc-upgrading.xml

i92guboj 07-22-2009 03:23 AM

Quote:

Originally Posted by karamarisan (Post 3615803)
1. The CLI editor that you'll find easiest to use is nano. If you'd like something that's perhaps a bit more powerful, try vim (my favorite). emacs is the other big one; jokes are often made that emacs is not a great text editor but a great operating system with a text editor, etc. - it's very complex, but very capable. If you're up for a challenge, read up on how to use it.

There are lots, really. vim and emacs seem to the the standard, however I've never been a fan of any of them for various reasons. All I want from an editor is the capability to edit text, I have other software to do the rest. But, to each his/her own.

Text based ones are vim, emacs, elvis, joe, nano, mcedit (installed along with mc). To see what more can you find, you could do this:

Code:

equery list -p "app-editors/*"
To make "equery" available you first need to "emerge gentoolkit" if you didn't already.

Quote:

2. Did some quick Googling and found that Gentoo includes a program called qpkg, which can be run with the -I option to get a list of all installed packages.
Code:

equery list -i "*"
However, a simple "cd /var/db/pkg; ls -d */*" would suffice as well.

Quote:

3. Try running it. If you get a 'command not found' message from your shell, nope; if it does anything else, yep. In the former case, try `emerge search gcc`, or Google "Gentoo install gcc" or something similar.
gcc is always installed, don't forget that Gentoo is a source based metadistro, everything you install is compiled on your own machine, and for that you need... a compiler.

karamarisan 07-22-2009 03:47 AM

Quote:

Originally Posted by i92guboj (Post 3616115)
gcc is always installed, don't forget that Gentoo is a source based metadistro, everything you install is compiled on your own machine, and for that you need... a compiler.

Gah. Duh. How did I miss that one? :)

d2_racing 07-22-2009 07:06 AM

Hi, I use qlist -I nowadays because the latest version of equery list need to use the exact name of the package.


All times are GMT -5. The time now is 11:04 AM.