Re: захолдить изменени я в пакете

Alexander Gerasiov <[email protected]>
Newsgroups gmane.linux.debian.user.russian
Message-ID <[email protected]>
On Tue, 24 Dec 2019 11:18:37 +0200
Sohin Vyacheslav <[email protected]> wrote:

> 24.12.2019 6:41, Alexander Gerasiov пишет:
> > On Mon, 23 Dec 2019 18:31:09 +0200
> > Переименовать sa-compile в sa-compile.orig при помощи dpkg-divert.
> > Положить рядом под оригинальным именем свой модифицированный.
> >   
> 
> А таким образом можно:
> # dpkg-divert --divert /tmp/sa-compile --rename /usr/bin/sa-compile
> 
> где /tmp/sa-compile - модифицированный мной файл
> /usr/bin/sa-compile - оригинальный файл

Неправильно. При помощи dpkg-divert ты переименовываешь файл из пакета
в другое имя. Тогда при распаковке он не будет затирать
модифицированный тобой файл по оригинальному пути. Почитай внимательно
ман (особенно примеры в конце).

-- 
Best regards,
 Alexander Gerasiov

 Contacts:
 e-mail: [email protected]  WWW: http://gerasiov.net  TG/Skype: gerasiov
 PGP fingerprint: 04B5 9D90 DF7C C2AB CD49  BAEA CA87 E9E8 2AAC 33F1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.