{"id":4197,"date":"2024-10-30T07:35:18","date_gmt":"2024-10-29T22:35:18","guid":{"rendered":"https:\/\/matoken.org\/blog\/?p=4197"},"modified":"2024-10-30T07:35:21","modified_gmt":"2024-10-29T22:35:21","slug":"update-the-packages-installed-with-go-install-using-gup","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2024\/10\/30\/update-the-packages-installed-with-go-install-using-gup\/","title":{"rendered":"go install\u3067\u5c0e\u5165\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092gup\u3067\u6700\u65b0\u306b\u3059\u308b"},"content":{"rendered":"<div id=\"preamble\">\n<div class=\"sectionbody\">\n<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"48\" height=\"48\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514c-.176.046-.187.058-.34-.117c-.174-.199-.303-.327-.548-.444c-.737-.362-1.45-.257-2.115.175c-.795.514-1.204 1.274-1.192 2.22c.011.935.654 1.706 1.577 1.835c.795.105 1.46-.175 1.987-.77c.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35c.152-.362.432-.97.596-1.274a.32.32 0 0 1 .292-.187h4.253c-.023.316-.023.631-.07.947a5 5 0 0 1-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986c-1.145.152-2.209-.07-3.143-.77c-.865-.655-1.356-1.52-1.484-2.595c-.152-1.274.222-2.419.993-3.424c.83-1.086 1.928-1.776 3.272-2.02c1.098-.2 2.15-.07 3.096.571c.62.41 1.063.97 1.356 1.648c.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.67 3.67 0 0 1-1.262-2.255c-.21-1.32.152-2.489.947-3.529c.853-1.122 1.881-1.706 3.272-1.95c1.192-.21 2.314-.095 3.33.595c.923.63 1.496 1.484 1.648 2.605c.198 1.578-.257 2.863-1.344 3.962c-.771.783-1.718 1.273-2.805 1.495c-.315.06-.63.07-.934.106m2.78-4.72c-.011-.153-.011-.27-.034-.387c-.21-1.157-1.274-1.81-2.384-1.554c-1.087.245-1.788.935-2.045 2.033c-.21.912.234 1.835 1.075 2.21c.643.28 1.285.244 1.905-.07c.923-.48 1.425-1.228 1.484-2.233z\"><\/path><\/svg><!-- https:\/\/icon-sets.iconify.design\/simple-icons\/go\/ --><\/p>\n<div class=\"paragraph\">\n<p><a href=\"https:\/\/matoken.org\/blog\/2024\/10\/25\/bulk-update-rust-packages-introduced-with-cargo-using-cargo-update\/\">cargo-update<\/a>\u30b3\u30de\u30f3\u30c9\u304c\u4fbf\u5229\u306a\u306e\u3067Go\u74b0\u5883\u3067\u3082\u540c\u3058\u3088\u3046\u306a\u3082\u306e\u3092\u63a2\u3057\u3066\u307f\u307e\u3057\u305f\uff0egup\u3068\u3044\u3046\u3082\u306e\u3092\u898b\u3064\u3051\u3066\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/nao1215\/gup\/\">nao1215\/gup: gup &#8211; Update binaries installed by &#8220;go install&#8221; with goroutines.<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/nao1215\/gup\/blob\/main\/doc\/ja\/README.md\">gup\/doc\/ja\/README.md at main \u00b7 nao1215\/gup<\/a> (\u65e5\u672c\u8a9e)<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<p><!--more--><\/p>\n<div class=\"listingblock\">\n<div class=\"title\">gup\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/div>\n<div class=\"content\">\n<pre>$ go install github.com\/nao1215\/gup@latest<\/pre>\n<\/div>\n<\/div>\n<div class=\"admonitionblock note\">\n<table  class=\" table table-hover\" >\n<tr>\n<td class=\"icon\">\n<div class=\"title\">Note<\/div>\n<\/td>\n<td class=\"content\">\n<a href=\"https:\/\/github.com\/nao1215\/gup\/releases\">releases<\/a>\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u5f62\u5f0f\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3084\u30d0\u30a4\u30ca\u30ea\u3082\u3042\u308a\u307e\u3059\uff0e\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\"><code>$GOPATH\/bin<\/code> \u306e\u30ea\u30b9\u30c8\u3092\u53d6\u5f97<\/div>\n<div class=\"content\">\n<pre>$ gup list\n             air: github.com\/cosmtrek\/air@v1.44.0\n           algia: github.com\/mattn\/algia@v0.0.83\n       bluetuith: github.com\/darkhz\/bluetuith@v0.2.3\n            bsky: github.com\/mattn\/bsky@v0.0.61\n              : (\u4ee5\u4e0b\u7701\u7565)<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u30d0\u30a4\u30ca\u30ea\u304c\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/div>\n<div class=\"content\">\n<pre>$ gup check\ncheck binary under $GOPATH\/bin or $GOBIN\n[ 1\/22] libdb.so\/dissent (v0.0.30 \/ current: go1.22.6, installed: go1.23.2)\n[ 2\/22] github.com\/thushan\/smash (Already up-to-date: v0.9.3 \/ go1.23.2)\n[ 3\/22] github.com\/mrmarble\/termsvg\/cmd\/termsvg (Already up-to-date: v0.9.2 \/ go1.23.2)\n[ 4\/22] github.com\/darkhz\/bluetuith (Already up-to-date: v0.2.3 \/ go1.23.2)\n[ 5\/22] github.com\/nao1215\/gup (Already up-to-date: v0.27.5 \/ go1.23.2)\n[ 6\/22] github.com\/pouriyajamshidi\/tcping (Already up-to-date: v1.22.1 \/ go1.23.2)\n[ 7\/22] github.com\/charmbracelet\/glow (Already up-to-date: v1.5.1 \/ go1.23.2)\n[ 8\/22] github.com\/schachmat\/wego (Already up-to-date: v0.0.0-20241006164746-6578d5ebf3d5 \/ go1.23.2)\n[ 9\/22] github.com\/mattn\/bsky (Already up-to-date: v0.0.61 \/ go1.23.2)\n[10\/22] github.com\/antonmedv\/countdown (Already up-to-date: v1.5.0 \/ go1.23.2)\n[11\/22] github.com\/BuddhiLW\/lazywal\/cmd\/lazywal (Already up-to-date: v0.5.3 \/ go1.23.2)\n[12\/22] github.com\/mattn\/efm-langserver (Already up-to-date: v0.0.53 \/ go1.23.2)\n[13\/22] github.com\/buildkite\/terminal-to-html\/v3\/cmd\/terminal-to-html (Already up-to-date: v3.16.3 \/ go1.23.2)\n[14\/22] github.com\/diamondburned\/gtkcord4 (current: v0.0.19, latest: v0.0.30 \/ current: go1.21.6, installed: go1.23.2)\n[15\/22] github.com\/ariasmn\/ugm (Already up-to-date: v1.6.0 \/ go1.23.2)\n[16\/22] github.com\/charmbracelet\/vhs (Already up-to-date: v0.8.0 \/ go1.23.2)\n[17\/22] github.com\/mattn\/algia (Already up-to-date: v0.0.83 \/ go1.23.2)\n[18\/22] github.com\/cosmtrek\/air (current: v1.44.0, latest: v1.61.1 \/ current: go1.19.8, installed: go1.23.2)\n[19\/22] github.com\/sweetbbak\/tget (current: v0.0.0-20240308040335-76c53b4462e7, latest: v0.1.1 \/ current: go1.22.1, installed: go1.23.2)\n[20\/22] github.com\/kkdai\/chatgpt (Already up-to-date: v0.4.1 \/ go1.23.2)\n[21\/22] github.com\/pcarrier\/vanity-keygen (Already up-to-date: v0.0.0-20220703224004-4dfc327cc534 \/ go1.23.2)\n[22\/22] github.com\/eeeXun\/gtt (Already up-to-date: v0.0.0-20240810151233-9986dcb52543 \/ go1.23.2)\n\nIf you want to update binaries, run the following command.\n           $ gup update dissent gtkcord4 air tget<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u6307\u5b9a\u3057\u305f\u30d0\u30a4\u30ca\u30ea\u3092\u66f4\u65b0\u3059\u308b<\/div>\n<div class=\"content\">\n<pre>$ gup update tget<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u5168\u3066\u306e\u30d0\u30a4\u30ca\u30ea\u3092\u66f4\u65b0\u3059\u308b<\/div>\n<div class=\"content\">\n<pre>$ gup update<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u6307\u5b9a\u3057\u305f\u30d0\u30a4\u30ca\u30ea\u3092\u524a\u9664\u3059\u308b<\/div>\n<div class=\"content\">\n<pre>$ gup remove gtkcord4<\/pre>\n<\/div>\n<\/div>\n<div class=\"admonitionblock note\">\n<table  class=\" table table-hover\" >\n<tr>\n<td class=\"icon\">\n<div class=\"title\">Note<\/div>\n<\/td>\n<td class=\"content\">\n\u30d0\u30a4\u30ca\u30ea\u3060\u3051\u306e\u524a\u9664\u306e\u3088\u3046\u3067source\u306f\u6b8b\u308a\u307e\u3059\uff0e\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_go\u30d0\u30a4\u30ca\u30ea\u74b0\u5883\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30a4\u30f3\u30dd\u30fc\u30c8\">GO\u30d0\u30a4\u30ca\u30ea\u74b0\u5883\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\uff0c\u30a4\u30f3\u30dd\u30fc\u30c8<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>GO\u30d0\u30a4\u30ca\u30ea\u74b0\u5883\u306e\u60c5\u5831\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u3066\u5225\u74b0\u5883\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3067\u304d\u307e\u3059\uff0e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306f <code>$XDG_CONFIG_HOME\/gup\/gup.conf<\/code> \u306b\u66f8\u304d\u51fa\u3055\u308c\u307e\u3059\uff0e\u3082\u3057\u304f\u306f <code>--output<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3067STDOUT\u306b\u51fa\u529b\u3067\u304d\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u30a8\u30af\u30b9\u30dd\u30fc\u30c8<\/div>\n<div class=\"content\">\n<pre>$ gup export\nExport \/home\/matoken\/.config\/gup\/gup.conf\n$ tail -1 ~\/.config\/gup\/gup.conf\nwego = github.com\/schachmat\/wego<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u30a4\u30f3\u30dd\u30fc\u30c8<\/div>\n<div class=\"content\">\n<pre>$ export GOPATH=$HOME\/go-test <b class=\"conum\">(1)<\/b>\n$ export PATH=$PATH:$GOPATH\/bin\n$ go install github.com\/nao1215\/gup@latest <b class=\"conum\">(2)<\/b>\n$ which gup\n\/home\/matoken\/go-test\/bin\/gup\n$ gup list <b class=\"conum\">(3)<\/b>\ngup: github.com\/nao1215\/gup@v0.27.5\n$ rsync -avcP 192.168.0.27:~\/.config\/gup\/gup.conf ~\/.config\/gup\/ <b class=\"conum\">(4)<\/b>\n$ gup import <b class=\"conum\">(5)<\/b>\nstart update based on \/home\/matoken\/.config\/gup\/gup.conf\nupdate binary under $GOPATH\/bin or $GOBIN\n[ 1\/21] github.com\/nao1215\/gup (&lt;from gup.conf&gt; to v0.27.5, &lt;from gup.conf&gt; to )\n[ 2\/21] github.com\/schachmat\/wego (&lt;from gup.conf&gt; to v0.0.0-20241006164746-6578d5ebf3d5, &lt;from gup.conf&gt; to )\n[ 3\/21] github.com\/mattn\/algia (&lt;from gup.conf&gt; to v0.0.83, &lt;from gup.conf&gt; to )\n[ 4\/21] github.com\/pouriyajamshidi\/tcping (&lt;from gup.conf&gt; to v1.22.1, &lt;from gup.conf&gt; to )\n          : (\u4ee5\u4e0b\u7701\u7565)<\/pre>\n<\/div>\n<\/div>\n<div class=\"colist arabic\">\n<ol>\n<li>\n<p>\u30c6\u30b9\u30c8\u7528\u306e\u74b0\u5883\u3092GOPATH\u306b\u8a2d\u5b9a<\/p>\n<\/li>\n<li>\n<p>gup\u3092\u5c0e\u5165<\/p>\n<\/li>\n<li>\n<p>gup\u3057\u304b\u5c0e\u5165\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3092\u78ba\u8a8d<\/p>\n<\/li>\n<li>\n<p>\u30ea\u30e2\u30fc\u30c8\u306egup.conf\u3092\u30b3\u30d4\u30fc<\/p>\n<\/li>\n<li>\n<p>\u30a4\u30f3\u30dd\u30fc\u30c8<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<div class=\"admonitionblock tip\">\n<table  class=\" table table-hover\" >\n<tr>\n<td class=\"icon\">\n<div class=\"title\">Tip<\/div>\n<\/td>\n<td class=\"content\">\nDebian sid amd64\u74b0\u5883\u3067\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\uff0cRaspberryPi OS armhf\u74b0\u5883\u3067\u30a4\u30f3\u30dd\u30fc\u30c8\u3092\u8a66\u307f\u307e\u3057\u305f\u304c\u3046\u307e\u304f\u884c\u304d\u307e\u3057\u305f\uff0e\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"paragraph\">\n<p><code>gup update<\/code> \u3067\u76ee\u7684\u306f\u9054\u6210\u3067\u304d\u307e\u3057\u305f\u304c\uff0c\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\uff0c\u30a4\u30f3\u30dd\u30fc\u30c8\u6a5f\u80fd\u304c\u3053\u3068\u306e\u307b\u304b\u4fbf\u5229\u306a\u611f\u3058\u3067\u3059\uff0e<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_\u8a66\u3057\u305f\u74b0\u5883\">\u8a66\u3057\u305f\u74b0\u5883<\/h2>\n<div class=\"sectionbody\">\n<div class=\"listingblock\">\n<div class=\"title\">\u30e1\u30a4\u30f3\u74b0\u5883<\/div>\n<div class=\"content\">\n<pre>$ gup list | grep gup\n             gup: github.com\/nao1215\/gup@v0.27.5\n$ dpkg-query -W golang\ngolang:amd64    2:1.23~2\n$ lsb_release -dr\nDescription:    Debian GNU\/Linux trixie\/sid\nRelease:        n\/a\n$ arch\nx86_64<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u30a4\u30f3\u30dd\u30fc\u30c8\u74b0\u5883<\/div>\n<div class=\"content\">\n<pre>$ gup list | grep gup\n        gup: github.com\/nao1215\/gup@v0.27.5\n$ dpkg-query -W golang\ngolang:armhf    2:1.19~1\n$ lsb_release -dr\nNo LSB modules are available.\nDescription:    Raspbian GNU\/Linux 12 (bookworm)\nRelease:        12\n$ arch\narmv7l<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>cargo-update\u30b3\u30de\u30f3\u30c9\u304c\u4fbf\u5229\u306a\u306e\u3067Go\u74b0\u5883\u3067\u3082\u540c\u3058\u3088\u3046\u306a\u3082\u306e\u3092\u63a2\u3057\u3066\u307f\u307e\u3057\u305f\uff0egup\u3068\u3044\u3046\u3082\u306e\u3092\u898b\u3064\u3051\u3066\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e nao1215\/gup: gup &#8211; Update binaries ins [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":""},"categories":[809,7,6,546,199],"tags":[682,805,429],"class_list":["post-4197","post","type-post","status-publish","format-standard","hentry","category-bookworm-raspberry-pi-os","category-debian-linux","category-linux","category-raspberry-pi-os","category-sid","tag-go","tag-golang","tag-package"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=4197"}],"version-history":[{"count":2,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4197\/revisions"}],"predecessor-version":[{"id":4199,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4197\/revisions\/4199"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=4197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=4197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=4197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}