[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: локальные репозитории



Alexey_Kurinnij <alexey.kurinnij@gmail.com> writes:

> как минимум хочу чтобы локальные версии были видны менеджеру пакетов 

Ну так они видны.  Вот: 500 file: lenny/main Packages -- это из
локального репозитория. Просто приоритета они так и не получили.

$ apt-cache policy vim
vim:
 Installed: 1:7.1.314-3+lenny2
 Candidate: 1:7.1.314-3+lenny2
 Version table:
    2:7.3.035+hg~8fdc12103333-1 0
         2 http://ftp.us.debian.org unstable/main Packages
    2:7.2.445+hg~cb94c42c0e1a-1 0
         3 http://ftp.us.debian.org testing/main Packages
*** 1:7.1.314-3+lenny2 0
       500 file: lenny/main Packages
       500 http://ftp.us.debian.org stable/main Packages
       100 /var/lib/dpkg/status

У меня в локальном репозитории лежат только несколько важных меня
пакетов, которые я бэкпортил и пара тех, которых нет в дистрибутиве, а
целый репозиторий lenny/main я на машине не держу. И еще разница у нас в
том, что версии в локальном репозитории у меня новее, чем в
lenny/main. Я сейчас призадумался и уже думаю, что работает у меня по
другой причине. Вообще, фигня какая-то и документация мутная. Я прямо
сейчас не имею возможности с этим разобраться. У тебя приписывание
приоритета локальному репозиторию не произошло. То есть пустой origin не
сработал. Я набрал несколько запросов по теме и вот выискал такое
замечание, на что сам ранее случайно наступил. Но я так и не понял,
можно ли заставить работать или нет.


The documentation of pinning is a bit incomplete and unclear. I had to
debug the actual source code of apt in order to find out how it really
worked. Hopefully, this document will answer questions of many others
who are trying to do something with pinning. I am assuming that you
already read all other documentation on pinning before you read this.

    * There are three types of pinning: Pin: release, as used above,
      Pin: origin and Pin: version. The 'origin' here should be read as
      "site" and is matched against the site name of the url in the
      sources.list file (ie, a line deb
      http://ftp.nluug.nl/pub/os/Linux/distr/debian/ testing main
      contrib non-free would match against the string
      "ftp.nluug.nl"). Lines in sources.list that contain file: result
      in the empty string for this "site". The documentation of apt says
      that you can match against this empty string by using Pin: origin
      "" (note the double quotes), but this is wrong -- that matches
      against the string "\"\"" and will therefore never match anything.

Взято отсюда: http://www.xs4all.nl/~carlo17/howto/debian.html


Reply to: