GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.