Linux debian исходный код

Содержание
  1. Linux debian исходный код
  2. Debian Archive
  3. Current Releases
  4. Old Releases
  5. CDs
  6. Mirrors
  7. Other directories
  8. How to download a Debian package’s source code?
  9. 📦 Как получить исходный код пакета с помощью команды apt на Debian или Ubuntu
  10. Как получить исходный код пакета с помощью команды apt-get / apt
  11. Шаг 1 – Добавим репозиторий исходного кода
  12. Шаг 2 – Обновим индекс пакетов
  13. Шаг 3 – Скачаем исходный код пакета Ubuntu
  14. Шаг 4 – Разбор загруженных файлов исходного кода
  15. Как скачать исходный код пакета Debian
  16. Заключение
  17. You may also like
  18. 🐧 Сравнение команд Printf и Echo на Linux
  19. 🐧 Что означает -z на Bash
  20. 🐧 Примеры команд size на Linux
  21. 🐧 Linux_Logo – вывод ASCII логотипа Linux с.
  22. 🐧 Параметры конфигурационного файла Apt /etc/apt/apt.conf
  23. 🐧 Разница между выключением, перезагрузкой и остановкой Linux
  24. ⌨️ Введение в команду “./configure”: Компиляция исходного кода.
  25. 🐧 Что такое /dev/zero на Linux?
  26. Каковы лучшие дистрибутивы Linux в 2022 году
  27. 🐧 Работа с переменной PATH на Linux. Это.
  28. 1 comment
  29. Leave a Comment Cancel Reply
  30. • Свежие записи
  31. • Категории
  32. • Теги
  33. • itsecforu.ru
  34. • Страны посетителей
  35. IT is good
  36. Saved searches
  37. Use saved searches to filter your results more quickly
  38. The Universal OS

Linux debian исходный код

In reference to software, «source» is invariably shorthand for «source code», the preferred human-readable and human-modifiable form of the program. This is as opposed to object code, the derived binary executable form of a program. This shorthand readily takes derivative forms; one may speak of «the sources of a system» or of «having source».

In a high-level programming language, the typed program instructions that progammers write before the program is compiled or interpreted into machine language instructions the computer can execute.

Programming commands in their raw state as input by a programmer. Some programming languages allow the commands to be executed on the fly by a program interpreter. Other languages require the commands to be compiled into executable programs (binaries) before they can be used. In the UNIX/Linux world, some software is distributed as source code only; other packages include both source and binaries; still others are distributed in binary format only.

Specially written instructions by a software programmer to create executable programs when run through a compiler or language interpreter.

The form in which a computer program is written by the programmer. Source code is written in some formal programming language which can be ?compiled automatically into object code (into executable file) or machine code or executed by an interpreter.

In Linux, the source code is compiled into an executable file (binary).

*.?src is a source code file.

Источник

Debian Archive

See https://www.debian.org/ for information about Debian GNU/Linux.

Current Releases

Four Debian releases are available on the main site:

Debian 10.13, or buster Debian 10.13 was released Saturday, 10th September 2022. Installation and upgrading instructions, More information Debian 11.7, or bullseye Debian 11.7 was released Saturday, 29th April 2023. Installation and upgrading instructions, More information Debian 12.0, or bookworm Debian 12.0 was released Saturday, 10th June 2023. Installation and upgrading instructions, More information Testing, or trixie The current tested development snapshot is named trixie.
Packages which have been tested in unstable and passed automated tests propagate to this release.
More information Unstable, or sid The current development snapshot is named sid.
Untested candidate packages for future releases.
More information

Old Releases

CDs

For more information about Debian CDs, please see README.CD-manufacture.
Further information

Читайте также:  Расшифровка хендшейка kali linux

Mirrors

For more information about Debian mirrors, please see README.mirrors.html.
Further information

Other directories

doc Debian documentation.
indices Various indices of the site.
project Experimental packages and other miscellaneous files.

Источник

How to download a Debian package’s source code?

Downloading source code from Debian repositories is as simple as running apt-get source . It will put 3 files in your current directory, .dsc that describes package, .orig.tar.gz that contains unmodified sources, and .diff.gz that contains Debian-specific changes. But if you get error E: Unable to find a source package for , then you might not have the source code repository specified, so go to /etc/apt/sources.list (or some file in /etc/apt/sources.list.d/ that contains your Debian repository), find a string like:

deb ftp://ftp.debian.org/debian wheezy main contrib non-free 
deb-src ftp://ftp.debian.org/debian wheezy main contrib non-free 

Update package index files with sudo apt-get update and try again. See also:

A second possibility is to download the source code from upstream directly instead of downloading it from Debian repositories. This has the advantage that if you not only want to read the source code but might like to change something you can directly commit and submit it to upstream (assuming it is not a Debian patch).

You can usually find out the upstream source code repository URL in the file /usr/share/doc/$package_or_program_name/copyright .

$ head /usr/share/doc/git/copyright Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: git@vger.kernel.org Source: https://www.kernel.org/pub/software/scm/git/ Files: * Copyright: © 2005-2014, Linus Torvalds and others. License: GPL-2 Files: xdiff/* Copyright: © 2003-2009, Davide Libenzi, Johannes E. Schindelin 

This file is also referenced from packages.debian.org (search for «Copyright File»).

Источник

📦 Как получить исходный код пакета с помощью команды apt на Debian или Ubuntu

Мне нужен исходный код кода пакета, установленного с помощью команды apt-get или apt в Debian или Ubuntu.

Как получить или загрузить исходный код пакета в системе Debian или Ubuntu?

Как скачать исходный код пакета Ubuntu / Debian?

Исходный код – это не что иное, как текстовая версия программного обеспечения Debian или Ubuntu.

Обычно мы устанавливаем скомпилированное программное обеспечение, используя команду apt-get command / apt.

Однако иногда нам нужен исходный код, непосредственно написанный на языке программирования.

Исходный код полезен для применения пользовательского патча или добавления / удаления существующих функций из программного обеспечения .

Первый шаг для этого – загрузить исходный код.

Давайте посмотрим, как загрузить исходный код (файл DEB) с помощью командной строки.

Как получить исходный код пакета с помощью команды apt-get / apt

Процедура загрузки исходного кода для Ubuntu Linux следующая.

Обратите внимание, что apt-get поддерживает сторонние приложения с закрытым исходным кодом. Вы можете загрузить только исходный код программного обеспечения с открытым исходным кодом.

Шаг 1 – Добавим репозиторий исходного кода

О тредактируйте файл /etc/apt/sources.list, запустите:

$ sudo vi /etc/apt/sources.list

Читайте также:  Linux show hide file

Убедитесь, что deb-src ссылается на исходный код дистрибутива Ubuntu следующим образом:

# Sources specification for the Ubuntu 20.04 LTS distro #
deb-src http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu focal-security main restricted universe multiverse

  • deb-src: указывает, что вам нужен исходный код файлов .DEB.
  • http://archive.ubuntu.com/ubuntu: URL для получения индекса и исходного кода файлов .deb.
  • focal: Ubuntu Linux 20.04 LTS кодовое имя
  • main restricted universe multiverse :: имя компонента репо, как например main, restricted, universe, и multiverse

Шаг 2 – Обновим индекс пакетов

Запустите следующую команду, чтобы повторно синхронизировать файлы индекса пакета из их источников:

$ sudo apt-get update
# или #
$ sudo apt update

Шаг 3 – Скачаем исходный код пакета Ubuntu

Давайте загрузим исходный код оболочки bash, запустим:

$ sudo apt-get source
$ sudo apt-get source bash

Вы можете увидеть следующую ошибку, если вы забыли настроить deb-src, как описано в шаге № 1:

E: You must put some ‘source’ URIs in your sources.list

Шаг 4 – Разбор загруженных файлов исходного кода

Давайте запустим команду ls, чтобы увидеть исходный код пакета:

total 5512 drwxrwxr-x 15 vivek vivek 4096 Jul 19 10:32 bash-5.0 -rw-r--r-- 1 vivek vivek 74356 Jun 29 14:43 bash_5.0-6ubuntu1.1.debian.tar.xz -rw-r--r-- 1 vivek vivek 2418 Jun 29 14:43 bash_5.0-6ubuntu1.1.dsc -rw-r--r-- 1 vivek vivek 5554808 Jan 14 2019 bash_5.0.orig.tar.xz

По умолчанию исходный код извлекается в каталог bash-5.0:

Архив исходного кода bash с окончанием .tar.xz хранится в файле bash_5.0.orig.tar.xz.

Файл описания с окончанием .dsc содержит как имя пакета, так и содержимое (после ключевого слова Source:).

Тарбол, с любыми изменениями в исходном коде, плюс все файлы, созданные для пакета Debian, хранятся в файле bash_5.0-6ubuntu1.1.debian.tar.xz.

Если опция –download-only будет передана команде apt-get, то исходный пакет не будет распакован:

$ sudo apt-get —download-only source source bash

После загрузки мы можем извлечь исходные файлы для bash следующим образом:

$ dpkg-source -x /path/to/pkg.dsc
$ dpkg-source -x bash_5.0-6ubuntu1.1.dsc

$ sudo apt-get —build source $ sudo apt-get —build source bash

Убедитесь, что мы удовлетворяем зависимости сборки исходного пакета и чтобы избежать ошибок, установите эти библиотеки и инструменты:

Как скачать исходный код пакета Debian

Процедура такая же, как и в дистрибутиве Ubuntu, но синтаксис URL меняется следующим образом:

$ sudo vi /etc/apt/sources.list

Измените / обновите следующим образом:

# source repo for Debian 10 buster #
deb-src deb http://deb.debian.org/debian buster main

Заключение

Мы объяснили, как добавить репозиторий Ubuntu / Debian и загрузить исходный код пакета по имени.

Команда apt-get source полезна в тем случаях, когда вы хотите изучить конкретный пакет Debian.

Также полезно знать, какие параметры времени компиляции включены для конкретного пакета.

И, наконец, мы можем пересобрать пакеты для добавления или удаления компонентов.

Для более подробной информации посмотрите следующие man-страницы, набрав команду man:

$ man apt
$ man apt-get
$ man 5 sources.list
$ man debuild
$ man dch

itisgood
🛠️ cp: omitting directory – ошибка при копировании каталога на Linux
☸️ Minikube: развертывание контейнера с использованием частного реестра образов

You may also like

🐧 Сравнение команд Printf и Echo на Linux

🐧 Что означает -z на Bash

🐧 Примеры команд size на Linux

🐧 Linux_Logo – вывод ASCII логотипа Linux с.

🐧 Параметры конфигурационного файла Apt /etc/apt/apt.conf

🐧 Разница между выключением, перезагрузкой и остановкой Linux

⌨️ Введение в команду “./configure”: Компиляция исходного кода.

🐧 Что такое /dev/zero на Linux?

Каковы лучшие дистрибутивы Linux в 2022 году

🐧 Работа с переменной PATH на Linux. Это.

1 comment

Leave a Comment Cancel Reply

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

• Категории

• Теги

• itsecforu.ru

• Страны посетителей

IT is good

В этой статье вы узнаете, как удалить удаленный Git-репозиторий. Процесс прост, но его полезно запомнить, чтобы избежать неожиданностей в будущем. Git – это…

Читайте также:  Ред ос это линукс

В 11-й версии своей операционной системы Microsoft серьезно переработала интерфейс и убрала несколько привычных функций. Нововведения не всем пришлись по душе. Мы дадим…

Продажа ноутбука нередко становится хлопотным занятием. Кроме поиска покупателя, продавцу необходимо подготовить устройство перед проведением сделки. Но если последовательно выполнить все шаги, ничего…

Вы можете оказаться в ситуации, когда вам нужно использовать скрипт шелла для чтения файлов построчно. В этом руководстве я расскажу о нескольких способах…

Вторичное жильё выгоднее для молодых семей, желающих приобрести свою первую квартиру. Сталкиваясь с ипотечным кредитованием, можно избежать много лишней суеты и проблем, если…

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

The Universal OS

Debian packages, maintains and distributes many projects developed using GitHub. This account was created to facilitate push/pull interactions with the upstream developers of such projects. If you maintain a package whose upstream developers use GitHub, please feel free to join this group and mirror such project here.

This account is not intended to serve as the canonical (specified with Vcs-* fields of debian/control) location for corresponding Debian source packages. Most often such repositories should be made available on the Debian project’s public forge Salsa to guarantee autonomy.

Open a new issue with a signed statement asking to be added to the organization. The signature needs to be made with your PGP key currently in the Debian keyring. All active Debian Developers will be approved.

You might find following tools available from Debian useful for your interaction with GitHub

github-backup backs up everything GitHub knows about a repository, to the repository

Many thanks to the GitHub admins for their prompt action to release the previous (unused) «Debian» account.

This GitHub organization is not an endorsement of GitHub by Debian. Debian does not maintain or distribute the GitHub engine codebase because it is not available under free and open-source license (see Wikipedia for a list of available free and open-source alternatives). Moreover, this GitHub organization is not an official part of the Debian project. It is maintained by individual Debian developers (signed below) with the sole purpose of being useful.

— Charles Plessy plessy@debian.org Thu, 14 Jun 2012 09:11:55 +0900

— Yaroslav Halchenko debian@onerussian.com Thu, 14 Jun 2012 13:22:03 -0400

Источник

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