{"id":949,"date":"2013-12-18T17:20:24","date_gmt":"2013-12-18T08:20:24","guid":{"rendered":"http:\/\/pipopa.dip.jp\/?p=949"},"modified":"2015-09-26T17:21:13","modified_gmt":"2015-09-26T08:21:13","slug":"dpkg-set-selections-%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e8%87%aa%e5%8b%95%e3%82%a2%e3%83%83%e3%83%97%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%89%e3%82%92%e3%81%97%e3%81%aa%e3%81%84","status":"publish","type":"post","link":"https:\/\/pipopa.server-on.net\/?p=949","title":{"rendered":"dpkg \u2013set-selections \u3092\u4f7f\u3063\u3066\u81ea\u52d5\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u3057\u306a\u3044"},"content":{"rendered":"<table width=\"80%\">\n<tbody>\n<tr>\n<td align=\"center\" bgcolor=\"#FF9933\"><span style=\"color: #ffffff;\"><b>[dpkg \u2013set-selections \u3092\u4f7f\u3063\u3066\u81ea\u52d5\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u3057\u306a\u3044]&#8212;&#8211;2013\/12\/18(Wed) 10:36<\/b><\/span><\/td>\n<\/tr>\n<tr>\n<td>http:\/\/server-setting.info\/debian\/debian-no-apt-upgrade.html\u3055\u3093\u3002\u3042\u308a\u304c\u3068\u3046\u3002\u3002<\/p>\n<p>dpkg \u2013set-selections \u3092\u4f7f\u3063\u3066\u81ea\u52d5\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5\u306f\u7c21\u5358\u3067\u3059\u304c\u3001\u4e00\u5f8b\u3001hold\u3055\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u5c11\u306a\u304f\u3068\u3082\u3001<br \/>\napt-get(aptitude) upgrade package \u53c8\u306f apt-get(aptitude) dist-upgrade \u306b\u5bfe\u3059\u308b\u81ea\u52d5\u30c0\u30a6\u30f3\u30b0\u30ec\u30fc\u30c9\u306e\u5f37\u884c\u306e\u5834\u5408\u3082\u3001hold\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002 \u3064\u307e\u308a\u3001\u30c0\u30a6\u30f3\u30b0\u30ec\u30fc\u30c9\u3057\u305f\u3044\u3068\u304d\u306b\u3082\u3001\u4f55\u3082\u3057\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\u305f\u3060\u3001\u30c0\u30a6\u30f3\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u3053\u3068\u306f\u3001\u65e9\u3005\u7121\u3044\u306e\u3067\u3001\u4f7f\u3044\u52dd\u624b\u3068\u3057 \u3066\u306f\u3001\u3053\u306e\u65b9\u6cd5\u304c\u3001\u6700\u3082\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4f7f\u3044\u65b9\u306f\u3001\u3044\u305f\u3063\u3066\u7c21\u5358\u3067\u3059\u3002\u4e0b\u8a18\u306e\u3088\u3046\u306b\uff11\u884c\u3067 hold \uff08\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u306a\u3044\uff09\u3001install \uff08\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\uff09\u3078\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p># \u9664\u5916\u3059\u308b\u5834\u5408<br \/>\n$ echo \u30d1\u30c3\u30b1\u30fc\u30b8\u540d hold | dpkg &#8211;set-selections<\/p>\n<p># \u9664\u5916\u5bfe\u8c61\u304b\u3089\u5916\u3059\u5834\u5408<br \/>\n$ echo \u30d1\u30c3\u30b1\u30fc\u30b8\u540d install | dpkg &#8211;set-selections<\/p>\n<p>\u307e\u305f\u3001\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<p># \u5168\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u72b6\u614b\u3092\u51fa\u529b\u3059\u308b<br \/>\n$ dpkg &#8211;get-selections<br \/>\nacpi install<br \/>\n&#8230;<br \/>\nnginx install<br \/>\n&#8230;<\/p>\n<p># \u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408<br \/>\n$ dpkg &#8211;get-selections nginx<br \/>\nnginx install<\/p>\n<p># hold \u72b6\u614b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u306e\u307f\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408<br \/>\n$ dpkg &#8211;get-selections | grep -e nginx<br \/>\nnginx hold<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>[dpkg \u2013set-selections \u3092\u4f7f\u3063\u3066\u81ea\u52d5\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u3057\u306a\u3044]&#8212;&#8211;2013\/12\/18(Wed) 10:36 http:\/\/server-setting.info\/debian\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-949","post","type-post","status-publish","format-standard","hentry","category-kopipe"],"_links":{"self":[{"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=\/wp\/v2\/posts\/949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=949"}],"version-history":[{"count":1,"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=\/wp\/v2\/posts\/949\/revisions"}],"predecessor-version":[{"id":950,"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=\/wp\/v2\/posts\/949\/revisions\/950"}],"wp:attachment":[{"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pipopa.server-on.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}