<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Pkg on Kenno&#39;s Open Note</title>
    <link>https://blog.khmersite.net/tags/pkg/</link>
    <description>Recent content in Pkg on Kenno&#39;s Open Note</description>
    <image>
      <title>Kenno&#39;s Open Note</title>
      <url>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- 0.154.0</generator>
    <language>en</language>
    <lastBuildDate>Sat, 02 Dec 2023 20:32:28 +1100</lastBuildDate>
    <atom:link href="https://blog.khmersite.net/tags/pkg/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>FreeBSD 14 shared object libssl.so.111 not found</title>
      <link>https://blog.khmersite.net/p/freebsd-14-shared-object-libssl-so-111-not-found/</link>
      <pubDate>Sat, 02 Dec 2023 20:32:28 +1100</pubDate>
      <guid>https://blog.khmersite.net/p/freebsd-14-shared-object-libssl-so-111-not-found/</guid>
      <description>&lt;p&gt;FreeBSD 14.0-RELEASE just got relesed at the end of last month, and I wanted to upgrade my NAS server running FreeBSD 13.x-RELEASE to 14.0.&lt;/p&gt;
&lt;p&gt;Using the installation instruction from [1], I was able to upgrade smoothly without any issues. Here are the steps:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# freebsd-update fetch
# freebsd-update install
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# freebsd-update upgrade -r 14.0-RELEASE
# freebsd-update install
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Reboot:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# reboot
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;After rebooting, freebsd-update(8)[2] needs to be run again to install the new userland components:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Looping Through Line in a File in Bash</title>
      <link>https://blog.khmersite.net/p/looping-through-line-in-file-in-bash/</link>
      <pubDate>Sat, 17 Apr 2021 18:39:37 +1000</pubDate>
      <guid>https://blog.khmersite.net/p/looping-through-line-in-file-in-bash/</guid>
      <description>&lt;p&gt;I wanted to install &lt;code&gt;vim&lt;/code&gt; package on FreeBSD 13.0, and did so without realizing that there were over 86 additional dependency packages installed. This was done with &lt;code&gt;pkg install -y vim&lt;/code&gt; command.&lt;/p&gt;
&lt;p&gt;Anyway, I wanted to clean up by removing &lt;code&gt;vim&lt;/code&gt; and those dependencies after all this is a headless server. Removing &lt;code&gt;vim&lt;/code&gt; package doesn&amp;rsquo;t remove the installed dependencies.&lt;/p&gt;
&lt;p&gt;Fortunately, I was able to copy and paste the names of dependency packages and save it to a file. My first thought was to just go through each line in that file and run &lt;code&gt;pkg delete -y PACKAGE&lt;/code&gt;. In the past I needed to do similar thing in a bash script or command to loop through the content of a file per line. Guess what? I no longer remember how to do that. Hence I&amp;rsquo;m writing this post to remind my future self in case I need to do this similar thing again.&lt;/p&gt;</description>
    </item>
    <item>
      <title>FreeBSD 12 : Can&#39;t update packages size mismatch</title>
      <link>https://blog.khmersite.net/p/freebsd-12-cant-update-packages-size-mismatch/</link>
      <pubDate>Thu, 15 Feb 2018 23:10:26 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/freebsd-12-cant-update-packages-size-mismatch/</guid>
      <description>&lt;p&gt;It’s another night with another FreeBSD problem. Well, I could just use Linux like Ubuntu or Void, but then things would just work. Where is the fun? 😉&lt;/p&gt;
&lt;p&gt;So, I’ve been having problem with upgrading or installing new binary packages on a machine running FreeBSD 12.0 for a few days now.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root@vansota:~ # pkg upgrade
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Updating FreeBSD repository catalogue...
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;FreeBSD repository is up to date.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;All repositories are up to date.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Checking for upgrades (13 candidates): 100%
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Processing candidates (13 candidates): 100%
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;The following 6 package(s) will be affected (of 0 checked):
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;New packages to be INSTALLED:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;	p5-Locale-gettext: 1.07
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Installed packages to be REINSTALLED:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;	xorg-server-1.18.4_6,1 (needed shared library changed)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;	xf86-input-synaptics-1.9.0 (options changed)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;	texinfo-6.5,1 (options changed)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;	m4-1.4.18,1 (options changed)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;	help2man-1.47.5 (options changed)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Number of packages to be installed: 1
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Number of packages to be reinstalled: 5
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;The process will require 2 MiB more space.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;3 MiB to be downloaded.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Proceed with this action? [y/N]: y
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[1/6] Fetching xorg-server-1.18.4_6,1.txz: 100%    1 MiB 184.0kB/s    00:08    
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;pkg: cached package xorg-server-1.18.4_6,1: size mismatch, fetching from remote
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[2/6] Fetching xorg-server-1.18.4_6,1.txz:  18%  272 KiB 180.2kB/s    00:08 ETA
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;First I&amp;rsquo;d thought it was just some FreeBSD mirrors were out of sync of each others. This happens quite frequently with Ubuntu mirrors. Usually, we give it a bit of time and the problem will fix itself.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
