{"id":3365,"date":"2014-12-12T18:49:18","date_gmt":"2014-12-12T18:49:18","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=3365"},"modified":"2014-12-26T14:57:57","modified_gmt":"2014-12-26T14:57:57","slug":"ubuntu-package-nicht-upgraden","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=3365","title":{"rendered":"Ubuntu Package nicht Upgraden"},"content":{"rendered":"<p><a href=\"http:\/\/askubuntu.com\/questions\/18654\/how-to-prevent-updating-of-a-specific-package\">How to prevent updating of a specific package?<\/a><\/p>\n<h4>Using dpkg<\/h4>\n<p><em>Put a package on hold<\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\necho &quot;package hold&quot; | sudo dpkg --set-selections\r\n<\/pre>\n<p><em>Remove the hold<\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\necho &quot;package install&quot; | sudo dpkg --set-selections\r\n<\/pre>\n<p><em>Displaying the status of your packages<\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndpkg --get-selections\r\n<\/pre>\n<p><em>Displaying the status of a single package<\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndpkg --get-selections | grep &quot;package&quot;\r\n<\/pre>\n<h4>Using apt<\/h4>\n<p><em>you can hold a package using<\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsudo apt-mark hold package_name\r\n<\/pre>\n<p><em>and remove the hold with<\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsudo apt-mark unhold package_name\r\n<\/pre>\n<h4>Using aptitude<\/h4>\n<p><em>you can hold a package using<\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsudo aptitude hold package_name\r\n<\/pre>\n<p><em>and remove the hold with<\/em><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsudo aptitude unhold package_name\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to prevent updating of a specific package? Using dpkg Put a package on hold echo &quot;package hold&quot; | sudo dpkg &#8211;set-selections Remove the hold echo &quot;package install&quot; | sudo dpkg &#8211;set-selections Displaying the status of your packages dpkg &#8211;get-selections Displaying the status of a single package dpkg &#8211;get-selections | grep &quot;package&quot; Using apt you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3365","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3365"}],"version-history":[{"count":4,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3365\/revisions"}],"predecessor-version":[{"id":3417,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3365\/revisions\/3417"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}