{"id":1778,"date":"2019-05-14T20:13:08","date_gmt":"2019-05-14T17:13:08","guid":{"rendered":"http:\/\/surgery.moscow\/smos\/?p=1778"},"modified":"2020-02-21T19:36:34","modified_gmt":"2020-02-21T16:36:34","slug":"%d0%a3%d0%b4%d0%b0%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d1%81%d1%82%d0%b0%d1%80%d1%8b%d1%85-%d0%bd%d0%b5-%d0%b8%d1%81%d0%bf%d0%be%d0%bb%d1%8c%d0%b7%d1%83%d0%b5%d0%bc%d1%8b%d1%85-%d1%8f%d0%b4%d0%b5%d1%80","status":"publish","type":"post","link":"https:\/\/surgery.moscow\/smos\/2019\/05\/14\/%d0%a3%d0%b4%d0%b0%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d1%81%d1%82%d0%b0%d1%80%d1%8b%d1%85-%d0%bd%d0%b5-%d0%b8%d1%81%d0%bf%d0%be%d0%bb%d1%8c%d0%b7%d1%83%d0%b5%d0%bc%d1%8b%d1%85-%d1%8f%d0%b4%d0%b5%d1%80\/","title":{"rendered":"\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0440\u044b\u0445 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u044f\u0434\u0435\u0440 \u0432 Linux"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">\u0414\u043b\u044f deb \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 (Mint, Debian, Ubuntu)\n\n<strong>1.  <\/strong><code><strong>sudo apt autoremove --purge<\/strong><\/code>\n\n\n2.\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0440\u044b\u0445 \u044f\u0434\u0435\u0440 \u043b\u0438\u043d\u0443\u043a\u0441\u0430 \u0447\u0435\u0440\u0435\u0437 DPKG\n \n\u0410. \u0423\u0437\u043d\u0430\u0435\u043c \u043a\u0430\u043a\u043e\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u044f\u0434\u0440\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f <strong> <\/strong><code><strong>uname -r <\/strong><\/code>\n\u0411.\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u044f\u0434\u0435\u0440 \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0433\u043e: \n <code><strong>dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+' | grep -Fv $(uname -r) <\/strong><\/code>\n\u0412. \u0421\u0442\u0430\u0442\u0443\u0441\u044b \u044f\u0434\u0435\u0440 :\n <strong>rc:<\/strong> - \u044f\u0434\u0440\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u043e.\n <strong>ii:<\/strong> - \u044f\u0434\u0440\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043e.\n <strong>iU:<\/strong> - \u042f\u0434\u0440\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0443\u0434\u0430\u043b\u044f\u0442\u044c , \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0435\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432 apt.\n\u0413. \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0441\u0442\u0430\u0440\u043e\u0435 \u044f\u0434\u0440\u043e:\n <code>sudo dpkg --purge linux-image-4...........generic<\/code> \n\u0414.\u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u044f\u0434\u0440\u0430:\n  <code><strong>sudo dpkg --purge linux-image-4...-header linux-image-4.....<\/strong><\/code>\n\u0415. \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438\n<code><strong>sudo apt -f install<\/strong><\/code>\n\n---\u044d\u0442\u043e \u0446\u0435\u043b\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442---\u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u044f\u0434\u0435\u0440 \u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0438\u0445---\n<strong>sudo apt-get purge $(dpkg -l 'linux-*' | sed '\/^ii\/!d;\/'\"$(uname -r | sed \"s\/\\(.*\\)-\\([^0-9]\\+\\)\/\\1\/\")\"'\/d;s\/^[^ ]* [^ ]* \\([^ ]*\\).*\/\\1\/;\/[0-9]\/!d' | head -n -1)<\/strong>\n\n\u0437\u0430\u0442\u0435\u043c \u0434\u0435\u043b\u0430\u0435\u043c\n<strong>sudo apt autoremove<\/strong>\n\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><b>\u0414\u043b\u044f rpm \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 (Fedora, CentOs )<\/b><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>rpm -q kernel<\/strong>   -\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044f\u0434\u0435\u0440<\/li><li><strong>uname -a<\/strong>  -\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u0435\u0440\u0441\u0438\u044e \u044f\u0434\u0440\u0430<\/li><li><strong>yum -y install yum-utils<\/strong>  \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c yum-utils (\u0434\u043b\u044f \u0442\u0435\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u043c \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430)<\/li><li> <strong>package-cleanup &#8212;oldkernels &#8212;count=2<\/strong>    -\u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u044f\u0434\u0440\u0430 \u043a\u0440\u043e\u043c\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0434\u0432\u0443<\/li><li>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c<strong> installonly_limit=2<\/strong> \u0432 \u0444\u0430\u0439\u043b\u0435 yum.conf  , \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0447\u0438\u0441\u0442\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043e\u0442 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u044f\u0434\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438<\/li><li> <strong>yum remove<\/strong> \u0438\u043c\u044f \u044f\u0434\u0440\u0430  &#8212; \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0443\u0434\u0430\u043b\u044f\u044e\u0449\u0430\u044f \u044f\u0434\u0440\u0430 \u0432 \u0440\u0443\u0447\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f deb \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 (Mint, Debian, Ubuntu) 1. sudo apt autoremove &#8212;purge 2.\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0440\u044b\u0445 \u044f\u0434\u0435\u0440 \u043b\u0438\u043d\u0443\u043a\u0441\u0430 \u0447\u0435\u0440\u0435\u0437 DPKG \u0410. \u0423\u0437\u043d\u0430\u0435\u043c \u043a\u0430\u043a\u043e\u0435<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,22],"tags":[],"class_list":["post-1778","post","type-post","status-publish","format-standard","hentry","category-internet","category-technology"],"_links":{"self":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts\/1778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/comments?post=1778"}],"version-history":[{"count":8,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts\/1778\/revisions"}],"predecessor-version":[{"id":2768,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/posts\/1778\/revisions\/2768"}],"wp:attachment":[{"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/media?parent=1778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/categories?post=1778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/surgery.moscow\/smos\/wp-json\/wp\/v2\/tags?post=1778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}