From: Slava Dubrovskiy <slava@tangramltd.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] запретить обновление пакетов
Date: Mon, 29 Dec 2008 09:46:45 +0200
Message-ID: <49588065.4000300@tangramltd.com> (raw)
In-Reply-To: <gj9sej$f02$1@ger.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1280 bytes --]
Ivan Petrov пишет:
> Как правильно прописать запрет обновление openoffice пакетов при
> apt-get dist-upgrade?
> В apt-conf у меня неправильно записано, т.к. все равно просит обновлять:
>
> Hold {
> <------><------>// Old-style kernels.
> <------><------>"^(kernel|alsa)[0-9]+-source";
> <------><------>"openoffice.org","openoffice.org";
> <------><------>"openoffice.org","openoffice.org-kde";
> <------><------>"openoffice.org","openoffice.org-langpack-ru";
> <------>};
> };
> Как прописать правильно?
Hold {
// Old-style kernels.
"^(kernel|alsa)[0-9]+-source";
"^openoffice.*";
};
};
Почитайте про регулярные выражения.
^ - означает что слово начинается с начала строки
. - означает любой символ
* - означает что символ повторяется сколько угодно раз.
Т.о. под "^openoffice.*" попадут все пакеты которые начинаются с слова
openoffice т.е. все что вы перечислили явно.
--
WBR,
Dubrovskiy Vyacheslav
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3262 bytes --]
next prev parent reply other threads:[~2008-12-29 7:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-29 6:58 Ivan Petrov
2008-12-29 7:01 ` Andrey Rahmatullin
2008-12-29 7:06 ` Ivan Petrov
2008-12-29 7:12 ` Andrey Rahmatullin
2008-12-29 7:32 ` Ivan Petrov
2008-12-29 7:35 ` Andrey Rahmatullin
2008-12-29 7:51 ` Ivan Petrov
2008-12-29 8:08 ` Slava Dubrovskiy
2008-12-29 9:48 ` Andrey Rahmatullin
2008-12-29 9:58 ` Ilis
2008-12-29 10:02 ` Andrey Rahmatullin
2008-12-29 7:46 ` Slava Dubrovskiy [this message]
2008-12-29 7:50 ` Andrey Rahmatullin
2009-01-02 21:29 ` Michael Shigorin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49588065.4000300@tangramltd.com \
--to=slava@tangramltd.com \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git