Configurando o apt-get para baixar apenas atualizações de correção para um pacote

1

Estou instalando um pacote chamado ArangoDB de seu repositório oficial do apt: https://www.arangodb.com/repositories/arangodb2/xUbuntu_15.04/ /

Todas as novas versões do Ubuntu 15.04 serão publicadas nesse repositório: 2.6.x , 2.7.x , 2.8.x , 3.x etc.

As últimas versões publicadas atuais são 2.6.9 e 2.7.0 .

Estou interessado em usar apenas as versões 2.6.x . Atualmente, se eu fizer sudo apt-get dist-upgrade , ele deseja me atualizar de 2.6.9 para 2.7.0 , no entanto, não estou interessado em fazer upgrade para a ramificação 2.7.x .

Esta é a saída de apt-cache show arangodb :

Package: arangodb
Version: 2.7.0
Architecture: amd64
Maintainer: ArangoDB GmbH <[email protected]>
Installed-Size: 198437
Depends: libc6 (>= 2.17), libgcc1 (>= 1:4.1.1), libgoogle-perftools4, libreadline6 (>= 6.0), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.9), debconf (>= 0.5) | debconf-2.0, debconf
Conflicts: arangodb-client
Filename: ./amd64/arangodb_2.7.0_amd64.deb
Size: 50345290
MD5sum: d1f9d38ec61551d565a494b45b0699af
SHA1: ff156ded694cac8142fe164c905d8f2d415af4e3
SHA256: fd69a6bcb63a5da81a54ffb5c628799127a2626eebb969423d7ed1f9ac21a719
Section: database
Priority: optional
Description: the multi-model NoSQL database
 A distributed free and open-source database with a flexible data model for documents,
 graphs, and key-values. Build high performance applications using a convenient
 SQL-like query language or JavaScript extensions.
 .
 Copyright: 2012-2013 by triAGENS GmbH
 Copyright: 2014-2015 by ArangoDB GmbH
 ArangoDB Software
 www.arangodb.com
Description-md5: 5208d6fb7a7fd94e33572b5f3f217ed3

Package: arangodb
Version: 2.6.9
Architecture: amd64
Maintainer: ArangoDB GmbH <[email protected]>
Installed-Size: 197589
Depends: libc6 (>= 2.17), libgcc1 (>= 1:4.1.1), libgoogle-perftools4, libreadline6 (>= 6.0), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.9)
Conflicts: arangodb-client
Filename: ./amd64/arangodb_2.6.9_amd64.deb
Size: 47546996
MD5sum: fa35ffa386bde1c43436c551cea2924e
SHA1: 64bde849562b7c456875d40e14dfcf73874cba18
SHA256: c47bdaeeffae5ebb76df8f7a8eafe599b326d46e9d82f8df1922daeea1a17e23
Section: database
Priority: optional
Description: a multi-purpose NoSQL database
 A distributed free and open-source database with a flexible data model for documents,
 graphs, and key-values. Build high performance applications using a convenient
 SQL-like query language or JavaScript extensions.
 .
 Copyright: 2012-2013 by triAGENS GmbH
 Copyright: 2014-2015 by ArangoDB GmbH
 ArangoDB Software
 www.arangodb.com
Description-md5: 9841a24bd6847c3bab2332a4102711e2

Package: arangodb
Version: 2.5.7
Architecture: amd64
Maintainer: ArangoDB GmbH <[email protected]>
Installed-Size: 174568
Depends: libc6 (>= 2.17), libgcc1 (>= 1:4.1.1), libreadline6 (>= 6.0), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.9)
Conflicts: arangodb-client
Filename: ./amd64/arangodb_2.5.7_amd64.deb
Size: 37684252
MD5sum: 4eca4b445862af550ecbb9a05623457a
SHA1: 6431291c760b3e89215d286b3efe18e38fd639ec
SHA256: 8c53045525e5d183dba7fb3a2458ddd8381f72860af463d7512cd7cff8f51187
Section: database
Priority: optional
Description: a multi-purpose NoSQL database
 A distributed free and open-source database with a flexible data model for documents,
 graphs, and key-values. Build high performance applications using a convenient
 SQL-like query language or JavaScript extensions.
 .
 Copyright: 2012-2013 by triAGENS GmbH
 Copyright: 2014-2015 by ArangoDB GmbH
 ArangoDB Software
 www.arangodb.com
Description-md5: 9841a24bd6847c3bab2332a4102711e2

Package: arangodb
Version: 2.4.8
Architecture: amd64
Maintainer: ArangoDB GmbH <[email protected]>
Installed-Size: 734324
Depends: libc6 (>= 2.17), libgcc1 (>= 1:4.1.1), libreadline6 (>= 6.0), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.9)
Conflicts: arangodb-client
Filename: ./amd64/arangodb_2.4.8_amd64.deb
Size: 156878880
MD5sum: 63b44da74488383ea7e756b4db0fc031
SHA1: c485b906f9e6159a949ae51e7635712957072906
SHA256: 608c69de31b2d7f3a2a20216ebaeeda76882b127ce2421a4d7c308ec7c867b93
Section: database
Priority: optional
Description: a multi-purpose NoSQL database
 Copyright: 2012-2013 by triAGENS GmbH
 Copyright: 2014 by ArangoDB GmbH
 ArangoDB Software
 www.arangodb.com
Description-md5: f82a5b8de4259b6f08a2bce73b609725

Package: arangodb
Version: 2.3.5
Architecture: amd64
Maintainer: ArangoDB GmbH <[email protected]>
Installed-Size: 228005
Depends: libc6 (>= 2.17), libgcc1 (>= 1:4.1.1), libreadline6 (>= 6.0), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.9)
Conflicts: arangodb-client
Filename: ./amd64/arangodb_2.3.5_amd64.deb
Size: 46387612
MD5sum: 7e931e78801b956979638bff537b7acb
SHA1: f351d9f0074d78851ab8a4cb77776ddaa3fc08cb
SHA256: 23db36ab390603a164b649d8c66253ee86f555b6c1662f915c7e3980da833e48
Section: database
Priority: optional
Description: a multi-purpose NoSQL database
 Copyright: 2012-2013 by triAGENS GmbH
 Copyright: 2014 by ArangoDB GmbH
 ArangoDB Software
 www.arangodb.com
Description-md5: f82a5b8de4259b6f08a2bce73b609725

Package: arangodb
Version: 2.2.7
Architecture: amd64
Maintainer: triAGENS GmbH
Installed-Size: 216963
Depends: libc6 (>= 2.17), libgcc1 (>= 1:4.1.1), libreadline6 (>= 6.0), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.9)
Filename: ./amd64/arangodb_2.2.7_amd64.deb
Size: 46892184
MD5sum: 44cd2ad7dfe5975b322d9d921902471e
SHA1: ae268ea5fdde48b9973048db997951e906ce6aee
SHA256: ee042bf62fa6d86dcbe6b41830dcf10f8e5213633fbf87c8a5400e5943173419
Section: database
Priority: optional
Description: ArangoDB
 Copyright: 2012-2013 by triAGENS GmbH
 ArangoDB Software
 www.arangodb.org
Description-md5: e154fd38f1d4ef9268f1a660ce615fb9

Package: arangodb
Version: 2.1.2
Architecture: amd64
Maintainer: triAGENS GmbH
Installed-Size: 86279
Depends: libc6 (>= 2.17), libgcc1 (>= 1:4.1.1), libicu52 (>= 52~m1-1~), libreadline6 (>= 6.0), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.9)
Filename: ./amd64/arangodb_2.1.2_amd64.deb
Size: 12035046
MD5sum: bff26a57213d528b8dcd1070edbf534e
SHA1: 907e3982310f2fb25d526ae7cfa41b96a54b5353
SHA256: ac52c94a1822eed91e5a05abd177bd01aa6a01d3faa1f657c1aedff61965eeba
Section: database
Priority: optional
Description: ArangoDB
 Copyright: 2012-2013 by triAGENS GmbH
 ArangoDB Software
 www.arangodb.org
Description-md5: e154fd38f1d4ef9268f1a660ce615fb9

Package: arangodb
Version: 2.0.9
Architecture: amd64
Maintainer: triAGENS GmbH
Installed-Size: 83862
Depends: libc6 (>= 2.17), libgcc1 (>= 1:4.1.1), libicu52 (>= 52~m1-1~), libreadline6 (>= 6.0), libssl1.0.0 (>= 1.0.0), libstdc++6 (>= 4.9)
Filename: ./amd64/arangodb_2.0.9_amd64.deb
Size: 9615148
MD5sum: 21e29797f6e3dcef59b3c65cac3f4c07
SHA1: 7fd84dd41d861d21caf0ae5378da7c1cd9169f94
SHA256: 11809c11f9b4f896b0226f1be85e1df22e84a87d160313d2b802c20520d3a31b
Section: database
Priority: optional
Description: ArangoDB
 Copyright: 2012-2013 by triAGENS GmbH
 ArangoDB Software
 www.arangodb.org
Description-md5: e154fd38f1d4ef9268f1a660ce615fb9

Existe alguma maneira de definir apt-get para atualizar somente para uma versão na ramificação 2.6.x ?

    
por F21 13.10.2015 / 02:47

2 respostas

2

Consegui resolver isso criando um alfinete de versão.

Eu criei o arquivo /etc/apt/preferences.d/arangodb com o conteúdo:

Package: arangodb
Pin: version 2.6.*
Pin-Priority: 550

Observe que o pino da versão pode ser um glob. Depois de criar o arquivo, faça um sudo apt-get update then sudo apt-get dist-upgrade . apt não pede mais para atualizar o pacote para 2.7 .

    
por F21 14.10.2015 / 22:55
0

Para evitar atualizações, você pode marcar o pacote via

sudo apt-mark hold arangodb

Mas não é possível obter apenas atualizações para o ramo 2.6, porque não há pacotes diferentes para os diferentes lançamentos.

Por quê? Por isso:

Para instalar a versão 2.6, a página de instalação oficial diz

sudo apt-get install arangodb=2.6.9

o que significa que não existem pacotes diferentes para o 2.6.x, 2.7.x e assim por diante.

    
por A.B. 13.10.2015 / 07:16