2010-08-23 21:28:32 -03:00
|
|
|
.. _topics-ubuntu:
|
|
|
|
|
|
|
|
===============
|
|
|
|
Ubuntu packages
|
|
|
|
===============
|
|
|
|
|
2010-09-04 03:30:45 -03:00
|
|
|
.. versionadded:: 0.10
|
|
|
|
|
2012-05-02 03:25:35 -03:00
|
|
|
`Scrapinghub`_ publishes apt-gettable packages which are generally fresher than
|
2011-09-25 13:06:24 -03:00
|
|
|
those in Ubuntu, and more stable too since they're continuously built from
|
|
|
|
`Github repo`_ (master & stable branches) and so they contain the latest bug
|
|
|
|
fixes.
|
2010-08-23 21:28:32 -03:00
|
|
|
|
2014-01-19 19:12:07 -02:00
|
|
|
To use the packages:
|
2010-12-21 11:02:56 -02:00
|
|
|
|
2014-01-20 16:22:53 -02:00
|
|
|
1. Import the GPG key used to sign Scrapy packages into APT keyring::
|
2010-12-21 11:02:56 -02:00
|
|
|
|
2014-01-19 19:12:07 -02:00
|
|
|
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 627220E7
|
2010-12-21 11:02:56 -02:00
|
|
|
|
2014-01-20 16:22:53 -02:00
|
|
|
2. Create `/etc/apt/sources.list.d/scrapy.list` file using the following command::
|
2010-12-21 11:02:56 -02:00
|
|
|
|
2014-01-19 19:12:07 -02:00
|
|
|
echo 'deb http://archive.scrapy.org/ubuntu scrapy main' | sudo tee /etc/apt/sources.list.d/scrapy.list
|
2013-08-22 21:49:18 -03:00
|
|
|
|
2014-01-19 19:12:07 -02:00
|
|
|
3. Update package lists and install `scrapy-VERSION`, replace `VERSION` by a
|
2014-01-20 16:22:53 -02:00
|
|
|
known Scrapy version (i.e.: `scrapy-0.22`::
|
2013-08-22 21:49:18 -03:00
|
|
|
|
2014-01-20 14:39:26 -02:00
|
|
|
sudo apt-get update && sudo apt-get install scrapy-VERSION
|
2011-10-25 14:26:38 -02:00
|
|
|
|
2014-01-20 15:18:34 -02:00
|
|
|
.. note:: Repeat step 3 if you are trying to upgrade Scrapy.
|
2010-08-23 21:28:32 -03:00
|
|
|
|
2014-01-19 19:12:07 -02:00
|
|
|
.. warning:: `python-scrapy` is a different package provided by official debian
|
|
|
|
repositories, it's very outdated and it isn't supported by Scrapy team.
|
2010-08-23 21:28:32 -03:00
|
|
|
|
2012-05-02 03:25:35 -03:00
|
|
|
.. _Scrapinghub: http://scrapinghub.com/
|
2011-09-25 13:06:24 -03:00
|
|
|
.. _Github repo: https://github.com/scrapy/scrapy
|