Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Being a programmer, I would like to see the code of some of the applications installed on my system. What is the best way to access that code? I'm using Linux Mint 13 “Maya”.
Thank you for the reply. I've tried your suggestion and getting the following:
Code:
magic@magic ~ $ apt-get source htop
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for htop
Thank you, but I'm looking for a general way of getting source code for applications in Linux, not specifically for htop.
I checked my Repositories settings on Synaptic Package Manager and I have the Souce Code box ticked. So I'm confused as to why I can't seem to download the code
deb http://packages.linuxmint.com/ maya main upstream import
copy-paste right below it, and add to the new line the 'src' part, so it looks like this:
Code:
deb http://packages.linuxmint.com/ maya main upstream import
deb-src http://packages.linuxmint.com/ maya main upstream import
This will enable the source repos for mint-only packages. For the ubuntu ones (basically most programs) do the same thing to lines containing the word ubuntu.
They'll be in the same directory where you entered apt-get source package. Just type pwd (print working directory). If you just opened a terminal and entered the command, they'll probably be in your home directory. They are already unpacked, so look for a directory named appname-version, e.g. htop-1.0.
They'll be in the same directory where you entered apt-get source package. Just type pwd (print working directory). If you just opened a terminal and entered the command, they'll probably be in your home directory. They are already unpacked, so look for a directory named appname-version, e.g. htop-1.0.
You are right, I found them in my home directory. Thank you very much for all your support. My issue is now solved and a lot quicker than I expected! Thanks again for everyone who replied.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.