Results 1 to 3 of 3

Thread: Source code

  1. #1
    Join Date
    May 2009
    Location
    Republic of Moldova
    Beans
    83
    Distro
    Ubuntu 10.04 Lucid Lynx

    Thumbs down Source code

    hai everyone!
    where I can get source code of any Ubuntu programm?
    and the second question is: if any error I will find can I send directly to Lounchpad?
    thanks

    sorry for bad english. correct me please. )

  2. #2
    Join Date
    Mar 2008
    Location
    Cracow in Heart
    Beans
    1,938

    Re: Source code

    I would start looking here:

    http://packages.ubuntu.com/

    Once you find your package, on the right side there is a link to download the source code.
    Keep it real. Keep it nice.
    [SIGPIC][/SIGPIC]Shooting Ubuntu



  3. #3
    Join Date
    Apr 2009
    Beans
    49

    Re: Source code

    Hi,

    Alternatively, you can do the following:

    A: Enable the source repositories. To do this, add 'deb-src' lines to your /etc/apt/sources.list for each repository you're interested in. E.g. if you have the following line in sources.list:
    Code:
    deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
    You'd need to add the following line to get code from that repository.
    Code:
    deb-src http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
    Third-party (non Ubuntu) repositories may not provide source code.

    B: Update your package descriptions:
    Code:
    sudo apt-get update
    (Note that (A) and (B) can probably be done from within Synaptic etc.)

    C: Get the source code for the package you're interested in. You should not run the following command as root (sudo). The code will be downloaded to the current directory
    E.g.
    Code:
    mkdir -p ~/src/amarok
    cd ~/src/amarok
    apt-get source amarok
    If you plan on compiling something obtained from the repositories, you should run 'apt-get build-dep' to obtain the dependencies for the package. Before compiling anything, you'll also need the 'build-essential' package, which brings in the GNU compiling tools such as gcc and make.
    Code:
    sudo apt-get install build-essential
    sudo apt-get build-dep amarok
    Last edited by Rubicon_82; June 19th, 2009 at 11:05 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •