{"id":117,"date":"2024-09-02T08:05:56","date_gmt":"2024-09-02T08:05:56","guid":{"rendered":"http:\/\/blog.ltzs.us\/?p=117"},"modified":"2024-09-04T09:51:24","modified_gmt":"2024-09-04T09:51:24","slug":"add-a-new-repository-source","status":"publish","type":"post","link":"http:\/\/blog.ltzs.us\/?p=117","title":{"rendered":"Add a new repository source"},"content":{"rendered":"\n<p>InfluxDB as an example (taken from <a href=\"https:\/\/www.influxdata.com\/blog\/linux-package-signing-key-rotation\/\">here<\/a>):<\/p>\n\n\n\n<p>1. Obtain and verify the new key :<\/p>\n\n\n\n<p><mark style=\"background-color:#fcb900\" class=\"has-inline-color\"><code>wget -q https:\/\/repos.influxdata.com\/influxdata-archive_compat.key<\/code><\/mark><\/p>\n\n\n\n<p><mark style=\"background-color:#fcb900\" class=\"has-inline-color\"><code>gpg --with-fingerprint --show-keys .\/influxdata-archive_compat.key<\/code><\/mark><\/p>\n\n\n\n<p>2. Install the new key:<\/p>\n\n\n\n<p><mark style=\"background-color:#fcb900\" class=\"has-inline-color\"><code>cat influxdata-archive_compat.key | gpg --dearmor | sudo tee \/etc\/apt\/trusted.gpg.d\/influxdata-archive_compat.gpg &gt; \/dev\/null<\/code><\/mark><\/p>\n\n\n\n<p>3. Update your APT sources to use the new key:<\/p>\n\n\n\n<p><mark style=\"background-color:#fcb900\" class=\"has-inline-color\"><code>echo &#039;deb [signed-by=\/etc\/apt\/trusted.gpg.d\/influxdata-archive_compat.gpg] https:\/\/repos.influxdata.com\/debian stable main&#039; | sudo tee \/etc\/apt\/sources.list.d\/influxdata.list<\/code><\/mark><\/p>\n\n\n\n<p>4. Cleanup the old key:<\/p>\n\n\n\n<p><mark style=\"background-color:#fcb900\" class=\"has-inline-color\"><code>sudo rm -f \/etc\/apt\/trusted.gpg.d\/influxdb.gpg<\/code><\/mark><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>InfluxDB as an example (taken from here): 1. Obtain and verify the new key : wget -q https:\/\/repos.influxdata.com\/influxdata-archive_compat.key gpg &#8211;with-fingerprint &#8211;show-keys .\/influxdata-archive_compat.key 2. Install the new key: cat influxdata-archive_compat.key | gpg &#8211;dearmor | sudo tee \/etc\/apt\/trusted.gpg.d\/influxdata-archive_compat.gpg &gt; \/dev\/null 3. Update your APT sources to use the new key: echo &#039;deb [signed-by=\/etc\/apt\/trusted.gpg.d\/influxdata-archive_compat.gpg] https:\/\/repos.influxdata.com\/debian stable main&#039; |&#8230;<\/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-117","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=\/wp\/v2\/posts\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=117"}],"version-history":[{"count":27,"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions"}],"predecessor-version":[{"id":181,"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions\/181"}],"wp:attachment":[{"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ltzs.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}