Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80846

Re: Question about installing python and modules on Red Hat Linux 6

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; '16,': 0.03; 'source,': 0.04; 'preferably': 0.05; 'sysadmin': 0.05; 'source.': 0.07; 'subject:Question': 0.07; 'deploy': 0.09; 'exist,': 0.09; 'handful': 0.09; "people's": 0.09; 'skip:/ 10': 0.09; 'subject:modules': 0.09; 'sure,': 0.09; 'term,': 0.09; 'developer': 0.10; 'cc:addr:python-list': 0.11; 'mostly': 0.14; "(it's": 0.16; '12:57': 0.16; 'admin.': 0.16; 'balls': 0.16; 'collections': 0.16; 'competent': 0.16; 'dump': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'maintainable': 0.16; 'nightmare.': 0.16; 'op.': 0.16; 'patches': 0.16; 'subject:Hat': 0.16; 'tweak': 0.16; 'ubuntu,': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'users.': 0.18; 'hacking': 0.19; 'packages.': 0.19; 'version.': 0.19; 'cc:addr:python.org': 0.22; 'install': 0.23; 'manager.': 0.24; 'versions': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'compiled': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'testing': 0.29; 'michael': 0.29; 'network.': 0.30; 'newer': 0.30; 'especially': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'that.': 0.31; 'question:': 0.31; 'stuff': 0.32; 'run': 0.32; 'linux': 0.33; 'running': 0.33; 'actively': 0.33; 'packaging': 0.33; 'maybe': 0.34; "i'd": 0.34; "can't": 0.35; 'created': 0.35; 'something': 0.35; 'hundreds': 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'building': 0.35; 'version': 0.36; 'doubt': 0.36; 'his/her': 0.36; 'in.': 0.36; 'installing': 0.36; 'done': 0.36; "didn't": 0.36; 'responsible': 0.36; 'similar': 0.36; 'should': 0.36; 'application': 0.37; 'list': 0.37; 'server': 0.38; 'audio': 0.38; 'hat': 0.38; 'machines': 0.38; 'nov': 0.38; 'version,': 0.38; 'needed': 0.38; 'pm,': 0.38; 'short': 0.38; 'anything': 0.39; 'expect': 0.39; 'easy': 0.60; 'most': 0.60; 'ago,': 0.61; 'ago.': 0.61; 'new': 0.61; 'term': 0.63; 'day.': 0.63; 'our': 0.64; 'grab': 0.64; 'more': 0.64; 'different': 0.65; 'great': 0.65; 'needs,': 0.65; 'managing': 0.66; 'yes': 0.68; 'manner': 0.72; 'computers': 0.72; 'drivers': 0.74; 'apt-get': 0.84; 'manage,': 0.84; 'sound.': 0.84; 'subject:Red': 0.84; 'trust?': 0.84; 'unique.': 0.84; 'upgrade,': 0.84; 'upgrades,': 0.84; 'upstream': 0.84; 'yourself?': 0.84; 'boxes,': 0.91; 'dozen': 0.91; 'eliminates': 0.91; 'rpm': 0.91; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=8f0HDZONW+e/8JVdKvoosoULt8XNrM6qzVydIbsYfmE=; b=Ya/BXcmGhzdtONjizCXNEnnnfYo1iu3NrR4KlYEoLoyVXI/9zkVIPLLkab0psKHEIu S/xIbnWHAsUwiF8E6Q+i+LpQ+7sKWyd43U3DZ9FUylJv7RYEESlgdRFkdqoGnc1sQTmT P1s9OGK25vyGhkxrCyU8DVFe/Os9rxxHRMdTp2lUGd7Me35C/LntREMXC1s/tN+4enwl nZz4L/hFvW7nzstZ+V1vTBqysgfwpD2dF0xPGHjig1/2VqseGY7Ob0ArAVbEBXdpX1Lh Bp5C/YRIZL0zOomADQivnaXwkQrdKKjnuH1pCbxRWpSdVC0uHvh4H7Gn0eHZA492LoVt pnQA==
MIME-Version 1.0
X-Received by 10.50.171.193 with SMTP id aw1mr16804745igc.2.1416104592312; Sat, 15 Nov 2014 18:23:12 -0800 (PST)
In-Reply-To <5468049B.6050806@gmail.com>
References <2e88d2e2-bde6-4d8f-8f2f-06d6a9676ee4@googlegroups.com> <54676e23$0$13010$c3e8da3$5496439d@news.astraweb.com> <m47sdt$o9d$2@reader1.panix.com> <5467f926$0$13014$c3e8da3$5496439d@news.astraweb.com> <5468049B.6050806@gmail.com>
Date Sun, 16 Nov 2014 13:23:12 +1100
Subject Re: Question about installing python and modules on Red Hat Linux 6
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.15862.1416104600.18130.python-list@python.org> (permalink)
Lines 65
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1416104600 news.xs4all.nl 2902 [2001:888:2000:d::a6]:58087
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:80846

Show key headers only | View raw


On Sun, Nov 16, 2014 at 12:57 PM, Michael Torrie <torriem@gmail.com> wrote:
> In my last system administration job, we forbade installing from source,
> at least in the manner you are describing.  It's a maintenance
> nightmare.  Especially when it comes time to upgrade the system and get
> things up and running on a new OS version.  To make the system
> maintainable and re-creatable (it's easy to dump a list of installed
> packages to install on anther machine), it had to be done using the
> package manager.  Preferably with trusted packages (trusted
> repositories) that were actively maintained.  At that time Red Hat
> software collections didn't exist, so I did have to spend some
> considerable time building and testing RPM packages.  Yes it's a
> headache for the developer in the short term, but in the long term it
> always turned out better than hacking things together from source.
>

Fundamentally, this comes down to a single question: Who do you most trust?

1) Upstream repositories? Then install everything from the provided
package manager. All will be easy; as long as nothing you use got
removed in the version upgrade, you should be able to just grab all
the same packages and expect everything to run. This is what I'd
recommend for most end users.

2) Yourself? Then install stuff from source. For a competent sysadmin
on his/her own computer, this is what I'd recommend. Use the repos
when you can, but install anything from source if you feel like it. I
do this for a number of packages where Debian provides an oldish
version, or where I want to tweak something, or anything like that.
When you upgrade to a new OS version, it's time to reconsider all
those decisions; maybe there's a newer version in repo than the one
you built from source a while ago.

3) A local repository? Then do what you describe above - build and
test the RPMs and don't install anything from source. If you need
something that isn't in upstream, you compile it, package it, and
deploy it locally. Great if you have hundreds or thousands of similar
machines to manage, eliminates the maintenance nightmare, but is
unnecessary work if you have only a handful of machines and they're
all unique.

I'm responsible for maybe a dozen actively-used Linux boxes, so I'm a
pretty small-time admin. Plus, they run a variety of different
hardware, OS releases (they're mostly Debian-family distros, but I
have some Ubuntu, some Debian, one AntiX, and various others around
the place - and a variety of versions as well), and application
software (different needs, different stuff installed). Some are
headless servers that exist solely for the network. Others are
people's clients that they actively use every day. They don't all need
Wine, VirtualBox, DOSBox, or other compatibility/emulation layers; but
some need versions newer than those provided in the upsstream repos.
One box needs audio drivers compiled from source, else there's no
sound. Until a few months ago, several - but not all - needed a few
local patches to one program. (Then the patches got accepted upstream,
but that version isn't in the Debian repos yet.) And of course, they
all need their various configs - a web server is not created by "sudo
apt-get install apache2" so much as by editing /etc/apache2/*. Sure, I
*could* run everything through deb/rpm packages, but I'd be constantly
tweaking and packaging and managing upgrades, and it's much better use
of my time to just deploy from source. With so few computers to
manage, the Big-Oh benefits of your recommendation just don't kick in.

But I doubt these considerations apply to the OP. Of course, we can't
know until our crystal balls get some more to work on.

ChrisA

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Question about installing python and modules on Red Hat Linux 6 pythonista <software.by.python@gmail.com> - 2014-11-14 19:01 -0800
  Re: Question about installing python and modules on Red Hat Linux 6 Chris Angelico <rosuav@gmail.com> - 2014-11-15 16:09 +1100
  Re: Question about installing python and modules on Red Hat Linux 6 Cameron Simpson <cs@zip.com.au> - 2014-11-15 16:11 +1100
  Re: Question about installing python and modules on Red Hat Linux 6 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-16 02:15 +1100
    Re: Question about installing python and modules on Red Hat Linux 6 Grant Edwards <invalid@invalid.invalid> - 2014-11-15 15:45 +0000
      Re: Question about installing python and modules on Red Hat Linux 6 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-16 12:08 +1100
        Re: Question about installing python and modules on Red Hat Linux 6 Chris Angelico <rosuav@gmail.com> - 2014-11-16 12:32 +1100
        Re: Question about installing python and modules on Red Hat Linux 6 Michael Torrie <torriem@gmail.com> - 2014-11-15 18:57 -0700
        Re: Question about installing python and modules on Red Hat Linux 6 Chris Angelico <rosuav@gmail.com> - 2014-11-16 13:23 +1100
        Re: Question about installing python and modules on Red Hat Linux 6 Grant Edwards <invalid@invalid.invalid> - 2014-11-16 16:28 +0000
          Re: Question about installing python and modules on Red Hat Linux 6 Chris Angelico <rosuav@gmail.com> - 2014-11-17 09:16 +1100
    Re: Question about installing python and modules on Red Hat Linux 6 Michael Torrie <torriem@gmail.com> - 2014-11-15 10:05 -0700
  Re: Question about installing python and modules on Red Hat Linux 6 Michael Torrie <torriem@gmail.com> - 2014-11-15 10:02 -0700
  Re: Question about installing python and modules on Red Hat Linux 6 Michael Torrie <torriem@gmail.com> - 2014-11-15 10:13 -0700
  Re: Question about installing python and modules on Red Hat Linux 6 Michael Torrie <torriem@gmail.com> - 2014-11-15 10:23 -0700

csiph-web