Professional Web Applications Themes

Updating packages - where to build? - Linux Setup, Configuration & Administration

I've got a working SuSE linux 8.2 system, but I want/need to update/rebuild some packages (e.g. GTK+ 2.5 and its dependencies). I have downloaded the packages I want to rebuild, and they're sitting on my disk as .tar.gz files. I have -- and think I understand -- the build instructions ... but ... The build instructions talk about "the source directory". Where should this be? Is there a standard location? Does it even matter? What do other people do? Do I need to deinstall the existing GTK+ packages before building and/or installing (wouldn't this stop the system working) or can ...

  1. #1

    Default Updating packages - where to build?

    I've got a working SuSE linux 8.2 system, but I want/need to
    update/rebuild some packages (e.g. GTK+ 2.5 and its dependencies).

    I have downloaded the packages I want to rebuild, and they're sitting on
    my disk as .tar.gz files. I have -- and think I understand -- the build
    instructions ... but ...

    The build instructions talk about "the source directory". Where should
    this be? Is there a standard location? Does it even matter? What do
    other people do?

    Do I need to deinstall the existing GTK+ packages before building and/or
    installing (wouldn't this stop the system working) or can one just
    install the new version over the top of the old ... or do two versions
    coexist?

    I imagine I should log in as an ordinary user to build the packes, but
    will need to login as (or su to) root to install. Is that so?

    These questions feel like they ought to be a FAQ, but I can't find the
    answers online. A good book on the subject (electronic or forestware)
    would be comforting, too. Any pointers?

    Thanks, all, for your help. I hate having to ask such elementary
    questions - I'm an experienced Windows programmer and quite happy
    building apps on linux, but have never had to update a preinstalled
    'system' package before.

    Cheers,
    Daniel.


    Daniel Guest

  2. #2

    Default Re: Updating packages - where to build?

    Daniel James wrote:

     

    Everything I've read suggests /usr/local/src as the place to do this
    work, and it's where I do it. Unzip and untar whatever you have there.
    You will several sub-folders there.
     

    If you intend to update more than a handful of packages from source,
    it's best to install the package "checkinstall" so that your RPM
    database will always know what version you have. Thus, it will not
    matter if you already have an older version, because checkinstall will
    update the old, or simply install the new. Make sure you read the man
    page for checkinstall.
     

    Yes.
     

    Most of the time, there is a README and/or an INSTALL file in the source
    package. These include a lot of generic information that says exactly
    that: you have to su to the root account to install. They even coach
    you with specific command line instructions.
     

    That's why we hang out here on this newsgroup: to help and to be helped.

    SoftEdges
    SoftEdges Guest

  3. #3

    Default Re: Updating packages - where to build?

    On Fri, 05 Dec 2003 12:57:53 GMT, Daniel James <aaisp.org> wrote:
     

    .... personally, i just have a ~/pkg directory, where i move
    packages to once i've downloaded them. from there, i unpack
    whatever it is i'm gonna work on, then 'cd' to that subdir
    and normally:
    mtoblerstimpy:~> ./configure
    mtoblerstimpy:~> make
    mtoblerstimpy:~> make --install

    or whatever is explained in the docs :)
    ..
    --
    /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    Bore, n.: A person who talks when you wish him to listen.
    mjt Guest

  4. #4

    Default Re: Updating packages - where to build?

    Daniel James wrote: 

    I have a directory, /usr/local/Downloaded with a subdirectory there for
    each supplier (e.g., RedHat, sendmail, mutt, etc.). So that is where the
    ..gz files go.

    In /usr/src are subdirectories for each program (or bunch of programs).
    So my /usr/src looks like this:

    valinux:jdbeyer[~]$ ls -l /usr/src
    total 20
    drwxr-x--- 15 jdbeyer jdbeyer 4096 Jun 3 2003 gnupg-1.2.2
    drwxr-xr-x 14 nobody jdbeyer 4096 Jun 13 10:51 linux-2.4.21
    drwxr-x--- 3 jdbeyer jdbeyer 4096 Aug 5 12:55 mozilla
    drwxr-xr-x 7 root root 4096 Jan 12 2003 redhat
    drwxr-x--- 22 jdbeyer jdbeyer 4096 Sep 19 10:39 sendmail-8.12.10

    To get the source in those directories, and to create them, I just do

    tar -xzvf /usr/local/Downloaded/sendmail/sendmail.8.12.10.tar.gz

    when sitting in /usr/src. I do this as me, not root. I go inside
    /usr/src/sendmail (in this case) and do what needs to be done to compile
    it. Only then do I become root and do

    make install

    (actually, that is not quite what you do for sendmail)

    --
    .~. Jean-David Beyer Registered Linux User 85642.
    /V\ Registered Machine 73926.
    /( )\ Shrewsbury, New Jersey http://counter.li.org
    ^^-^^ 8:55am up 2 days, 21:41, 2 users, load average: 2.17, 2.27, 2.21

    Jean-David Guest

Similar Threads

  1. Updating Updating site map or archive dynamically
    By RooZam in forum Macromedia Contribute General Discussion
    Replies: 0
    Last Post: September 15th, 04:45 PM
  2. List of sample Build::Module Build.PL
    By bumrecordingstudios@gmail.com in forum PERL Modules
    Replies: 4
    Last Post: May 10th, 06:16 PM
  3. Updating binary packages
    By Soheil in forum FreeBSD
    Replies: 3
    Last Post: March 6th, 06:37 AM
  4. Updating AI Files causes position to 'bounce' when updating in Quark
    By Chris_Tod@adobeforums.com in forum Adobe Illustrator Macintosh
    Replies: 1
    Last Post: May 6th, 07:29 PM
  5. packages
    By Claus DŁnnebacke in forum AIX
    Replies: 1
    Last Post: September 11th, 08:36 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139