Install setup tools linux

Installing Software on Linux¶

One of the most difficult things to get used to in the Linux world is installing new software packages. In the world of Windows, every program comes with a Setup.exe program that asks you some very easy questions and takes care of the job for you. While Linux software can be almost that easy to install, you will sometimes find software that seems to fight every step of the way. I can’t cover all the problems you might run into, but I’ll try to give you the basics and a few pointers to help get you over the rough spots.

Software tends to come in “packages”. In the Windows world a package is a Setup.exe or a program.zip file. On a Mac a package is a program.dmg or a program.sit file. In the Linux world, there are several kinds of packages, and each distribution has its own preferred package format.

The standard Linux package format (according to the Linux Standard Base) is RPM. RPM is a packaging system originally developed by Red Hat and widely used in the Linux community. Distributions using it include Fedora, Mandriva, Red Hat (naturally), and SUSE. An RPM package file normally will be named something like program-version-other.rpm

Another popular package format is DEB, the Debian software package. Debian packages and the Advanced Packaging Tool (APT) were the first to introduce several advanced features that are now common, such as automatic dependency resolution and signed packages. Debian packages are used by Debian GNU/Linux (naturally), and distributions based on it, including Ubuntu, Knoppix, and Mepis. A Debian package file normally will be named something like program-version-other.deb

Remember, you will need to become SuperUser to install software.

Debian, Ubuntu: APT¶

There is a broad array of tools for working with DEB packages, but the one you will commonly use is apt-get , arguably the easiest of Linux package management tools. apt-get is so easy because it not only keeps track of what packages are installed, but also what other packages are available. It will even download them from the Internet for you (if properly configured).

To remove software is just as easy.

Although the repositories that contain installable packages might live on the Internet or on a disc somewhere, APT keeps a local database on your hard drive with a list of all available packages and where to find them. This database needs to be explicitly updated. To update the APT database:

Читайте также:  Linux passwd authentication token manipulation error

A common idiom is to update your package database, and then upgrade all the packages that have patches or security updates to install. The following command will do this all at once.

apt-get update; apt-get upgrade

For a more indepth apt-get tutorial and other resources, see Managing Software with APT and dpkg .

Fedora, Red Hat: yum ¶

yum does for RPM packages roughly what apt-get does for Debian packages. Like apt-get , yum can download and install packages from a configured repository.

To remove software is just as easy.

yum does not keep a local copy of your package database by default, so normally there is no need to update it. To install all available security patches and bug fixes, use this command:

You can also explicitly update a single package with:

For a more indepth yum tutorial and other resources, see Managing Software with yum and rpm .

Mandriva: urpm ¶

Mandriva Linux (formerly Mandrake and Connectiva) has a toolset similar to APT called urpmi . To install software:

To update the local package database:

To install security updates and bug fixes:

For a more indepth yum tutorial and other resources, see Managing Software with urpm .

Tar Balls¶

No, this is not a naughty term! A tar ball is a (usually compressed) archive of files, similar to a Zip file on Windows or a Sit on the Mac. Tar balls come in files that end in .tar , .tar.gz , .tgz , or something along these lines. To unpack a tar ball, use this command.

The parameters are x to extract files, z to filter through gzip for decompression (leave this off if the file does not have a gz extension), v for verbose mode so you can tell what’s going on, f indicating there will be a filename to follow. You may want to create an alias called “untar” that feeds in these options if you have a hard time remembering command line options as I do.

This command will not install the software, it will only extract the archived files. It is your job then to find the README file or INSTALL file and read its instructions for installation. If the archive contains binaries there will usually be a setup script (often called install.sh ) that you must execute as SuperUser .

Very often, software delivered in tar balls is not in executable form, but in source code, which must first be compiled before it can be installed. For more details on this, see Installing Software from Source Code .

Other Systems¶

Some other Linux distributions have their own way of managing packages, notably SUSE. SUSE uses RPM as its native package format, but has its own high level tool to manage system software installation.

Читайте также:  Socket buffer size linux

SUSE Linux uses a tool called yast (which allegedly is an acronym for Yet Another Setup Tool) to perform all kinds of system administration tasks, including installing software. Having no experience with it, I cannot give you more details. man yast for help.

Источник

Установка pip/setuptools/wheel в Unix/Linux

В этой статье «Установка pip/setuptools/wheel в Unix/Linux» описывается, как установить pip, setuptools и wheel в Unix/Linux ОС.

Установка pip/setuptools/wheel в Unix/Linux

Приведу установку на различные Unix/Linux ОС.

Установка pip/setuptools/wheel в Fedora

Чтобы установить Python 2 на Fedora 21, используйте следующие команды.

# yum upgrade python-setuptools
# yum install python-pip python-wheel

Чтобы установить Python 3 на Fedora 21, используйте следующие команды:

$ sudo yum install python3 python3-wheel

Чтобы установить Python 2 на Fedora 22, используйте следующие команды.

# dnf upgrade python-setuptools
# dnf install python-pip python-wheel

Чтобы установить Python 3 на Fedora 22, используйте следующие команды:

# dnf install python3 python3-wheel

Чтобы получить новые версии pip, setuptools и wheel для Python 2, вы можете включить PyPA Copr репозиторий:

[pypa-pypa] name=Copr repo for pypa owned by pypa baseurl=https://copr-be.cloud.fedoraproject.org/results/pypa/pypa/fedora-$releasever-$basearch/ type=rpm-md skip_if_unavailable=True gpgcheck=1 gpgkey=https://copr-be.cloud.fedoraproject.org/results/pypa/pypa/pubkey.gpg repo_gpgcheck=0 enabled=1 enabled_metadata=1
$ sudo yum|dnf upgrade python-setuptools $ sudo yum|dnf install python-pip python-wheel

Установка pip/setuptools/wheel в CentOS/RHEL

Чтобы установить pip и wheel, существует два варианта:

1. Включите репозиторий EPEL, используя эти инструкции:

После чего, вы можете установить pip следующим образом:

На EPEL 7 (но не EPEL 6), вы можете установить wheel следующим образом:

2. Включите репозиторий PyPA Copr репозиторий:

[pypa-pypa] name=Copr repo for pypa owned by pypa baseurl=https://copr-be.cloud.fedoraproject.org/results/pypa/pypa/epel-6-$basearch/ type=rpm-md skip_if_unavailable=True gpgcheck=1 gpgkey=https://copr-be.cloud.fedoraproject.org/results/pypa/pypa/pubkey.gpg repo_gpgcheck=0 enabled=1 enabled_metadata=1
[pypa-pypa] name=Copr repo for pypa owned by pypa baseurl=https://copr-be.cloud.fedoraproject.org/results/pypa/pypa/epel-7-$basearch/ type=rpm-md skip_if_unavailable=True gpgcheck=1 gpgkey=https://copr-be.cloud.fedoraproject.org/results/pypa/pypa/pubkey.gpg repo_gpgcheck=0 enabled=1 enabled_metadata=1

После чего, вы можете установить pip следующим образом:

# yum install python-pip python-wheel

Чтобы обновить setuptools, запустите:

# yum upgrade python-setuptools

Чтобы установить Python 3.4 на CentOS7/RHEL7, используйте:

# yum install python34u python34u-wheel

Установка pip/setuptools/wheel в openSUSE

Чтобы установить Python 2:

# zypper install python-pip python-setuptools python-wheel

Чтобы установить Python 3:

# zypper install python3-pip python3-setuptools python3-wheel

Установка pip/setuptools/wheel в Debian/Ubuntu

Чтобы установить Python 3:

# apt-get install python3-pip

Установка pip/setuptools/wheel в Arch Linux

Чтобы установить Python 2:

Чтобы установить Python 3:

Установка pip/setuptools/wheel в Mac OS X

Добавляем HOMEBREW на Mac OS X ( устанавливаем его):

После чего, можно приступать к установке:

Или, чтобы установить python 3:

Установка pip/setuptools/wheel с исходного кода.

И, чтобы получить самое новое ПО, НЕОБХОДИМО КОМПИЛИРОВАТЬ ЕГО!

Установка pip/wheel с исходного кода

# wget https://bootstrap.pypa.io/get-pip.py -O - | python3

Установка setuptools с исходного кода

# cd /usr/local/src && wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz

Смотрим где лежит нужный питон (у меня это 3.4):

# which python3 /usr/bin/python3
# /usr/bin/python3 setup.py install
# wget https://bootstrap.pypa.io/ez_setup.py -O - | python3

Установка easy_install с исходного кода

easy_install позволяет установить pip и его компоненты.

# cd /usr/local/src && wget --no-check-certificate http://pypi.python.org/packages/source/d/distribute/distribute-0.6.49.tar.gz
# tar xf distribute-*.tar.gz && cd distribute-*

Смотрим где лежит нужный питон (у меня это 3.4):

# which python3 /usr/bin/python3
# /usr/bin/python3 setup.py install

Использование PIP

Поиск пакета Python с помощью команды pip:

$ pip search your_name_of_package

Установка пакета с помощью команды pip:

Читайте также:  Android sdk linux path

    Установка по имени пакета:

# pip install your_name_of_package
# pip install your_name_of_package==[version]

Список пакетов Python, которые уже установлены в системе, можно проверить с помощью команды pip:

Показать информацию о пакете Python:

$ pip show your_name_of_package
# pip install --upgrade your_name_of_package
# pip uninstall your_name_of_package

А на этом, у меня все. Тема «Установка pip/setuptools/wheel в Unix/Linux» завершена.

Добавить комментарий Отменить ответ

Этот сайт использует Akismet для борьбы со спамом. Узнайте, как обрабатываются ваши данные комментариев.

Рубрики

  • Arch Linux (167)
  • Commands (36)
  • Debian’s (635)
    • Administration tools Ubuntu (37)
    • Backups Debian’s (7)
    • Database в Ubuntu (58)
    • Games (игры) (1)
    • Monitoring в Debian и Ubuntu (49)
    • Virtualization в Ubuntu / Debian/ Linux Mint (41)
      • Docker (22)
      • Kubernetes (6)
      • KVM (4)
      • OpenVZ (3)
      • Vagrant (5)
      • VirtualBox (6)
      • ArgoCD (1)
      • Concourse (1)
      • Gitlab (1)
      • Jenkinks (4)
      • Spinnaker (1)
      • Apache (32)
      • Cherokee (1)
      • FTP-services (5)
      • Lighttpd (1)
      • Nginx (26)
      • PHP (27)
      • Proxy для Debian’s (2)
      • Tomcat (4)
      • Панели управления в Ubuntu/Debian/Mint (24)
      • Установка и настройка почты на Ubuntu/Debian (12)
      • Хранилища (clouds) (2)
      • Administration tools freeBSD (19)
      • Database во FreeBSD (52)
      • Monitoring во freeBSD (37)
      • Virtualization во FreeBSD (22)
      • VoIP (1)
      • Установка Web сервисов (91)
      • Установка и настройка почты (6)
      • Установка из ports (пакетов) (19)
      • Установка из sorce code (исходников) (23)
      • Непрерывная интеграция (CI) (27)
      • Database в MacOS (36)
      • Monitoring в Mac OS (31)
      • Security (безопасность) (12)
      • Virtualization в Mac OS (30)
        • Docker (19)
        • Kubernetes (6)
        • Vagrant (5)
        • VirtualBox (5)
        • ArgoCD (1)
        • CircleCI (1)
        • Concourse (1)
        • Gitlab (1)
        • Jenkinks (4)
        • Spinnaker (1)
        • Administration tools CentOS (49)
        • Backups RPM’s (4)
        • Database в CentOS (68)
        • Monitoring в CentOS (67)
        • Virtualization в CentOS/ Red Hat/ Fedora (42)
          • Docker (23)
          • Kubernetes (6)
          • KVM (5)
          • OpenVZ (2)
          • Vagrant (5)
          • VirtualBox (6)
          • VMWare (3)
          • ArgoCD (1)
          • Concourse (1)
          • Gitlab (1)
          • Jenkinks (4)
          • Spinnaker (1)
          • Apache (35)
          • Cherokee (1)
          • DNS (3)
          • FTP (10)
          • Nginx (33)
          • PHP (34)
          • Proxy для RedHat’s (2)
          • Tomcat (2)
          • Voice (2)
          • Панели управления в CentOS/Red Hat/Fedora (27)
          • Прокси сервер на CentOS/RHEL/Fedora (4)
          • Установка и настройка почты на CentOS/RHEL/Fedora (14)
          • Хранилища (clouds) (1)

          соц сети

          Unix-Linux- в примерах

          Unix-Linux- в примерах

          Unix-Linux- в примерах

          Архив новостей

          Свежие записи

          Свежие комментарии

          • Глеб к записи Установка Adobe Flash Player в Debian/Ubuntu/Mint
          • Максим к записи Заблокировать User Agents используя Nginx
          • Денис к записи Как включить EPEL репозиторий на CentOS
          • Гость к записи Закомментировать/Раскомментировать строки vi/vim в Unix/Linux
          • Sergey к записи Установка и настройка OpenVPN сервера на Debian/Ubuntu/Linux Mint

          Источник

Оцените статью
Adblock
detector