<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>upgrade &#8211; Blog of Kliment Andreev &#8211; A place so I won&#039;t forget things</title>
	<atom:link href="https://blog.andreev.it/tag/upgrade/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.andreev.it</link>
	<description></description>
	<lastBuildDate>Mon, 02 Nov 2020 13:24:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>CentOS: Upgrade PostgreSQL from 9.2 to 9.6</title>
		<link>https://blog.andreev.it/2019/02/146-centos-postgresql-upgrade-postgresql-from-9-2-to-9-6/</link>
					<comments>https://blog.andreev.it/2019/02/146-centos-postgresql-upgrade-postgresql-from-9-2-to-9-6/#comments</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Tue, 05 Feb 2019 00:12:37 +0000</pubDate>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[upgrade]]></category>
		<guid isPermaLink="false">https://blog.andreev.it/?p=4381</guid>

					<description><![CDATA[If you&#8217;ve installed BitBucket on a CentOS 7 server and use PostgreSQL as the&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>If you&#8217;ve installed BitBucket on a CentOS 7 server and use PostgreSQL as the back-end database, you&#8217;ve probably seen this nagging warning that support for PostgreSQL 9.2.24 has been deprecated and will be removed in an upcoming release.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2019/02/P123-01.png"><img fetchpriority="high" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2019/02/P123-01.png" alt="" width="508" height="257" class="aligncenter size-full wp-image-8420" srcset="https://blog.andreev.it/wp-content/uploads/2019/02/P123-01.png 508w, https://blog.andreev.it/wp-content/uploads/2019/02/P123-01-300x152.png 300w" sizes="(max-width: 508px) 100vw, 508px" /></a><br />
While PostgeSQL 9.2 is quite old and they are already announcing version 12, mind that any of the Atlassian stack can&#8217;t support anything more than version 9.6 at the time of this writing.<br />
So, I&#8217;ll explain how to upgrade PostgreSQL on CentOS from 9.2.24 to PostgreSQL 9.6. While this post is for CentOS, it might work for other distros too. There are some prerequisites though. First, I assume that you installed PostgreSQL using <strong>yum </strong>from the default repo. In this case, your database most likely resides under <strong>/var/lib/pgsql/data</strong> and the binaries are under <strong>/usr/bin/psql</strong>. If you use the default version, then you probably use <strong>systemctl start/stop postgresql</strong> to manage the start/stop of the database daemon. If you have something different, the following tutorial will probably work, but you&#8217;ll have to adjust some directories.<br />
First thing first, let&#8217;s check the version of PostgreSQL that we use.</p>
<pre class="brush: bash; highlight: [1]; title: ; notranslate">
psql --version
psql (PostgreSQL) 9.2.24
</pre>
<p>Next, stop any services that use the database, such as BitBucket, Jira or Confluence or whatever you have there.<br />
Log as the postgres user that you use to manage the database. By the default this user is <strong>postgres</strong>.<br />
Do a full backup and move the backup somewhere because the home directory for the postgres user is where the database home is. You can compress the SQL file first. It&#8217;s just a plain text file.</p>
<pre class="brush: bash; title: ; notranslate">
pg_dumpall &gt; backup.sql
mv backup.sql somewhere/
</pre>
<p>Once done, stop the postgreSQL daemon, but log as root first. You won&#8217;t be able to stop the daemon using the postgres user.</p>
<pre class="brush: bash; title: ; notranslate">
systemctl stop postgresql
</pre>
<p>Go to a temp folder and get the RPM package from the PostgreSQL site. In case the link doesn&#8217;t work, go to the website using a browser and see what&#8217;s the latest 9.6 version.</p>
<pre class="brush: bash; title: ; notranslate">
cd /tmp
wget https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm
</pre>
<p>Install the newer version.</p>
<pre class="brush: bash; title: ; notranslate">
rpm -ivh pgdg-centos96-9.6-3.noarch.rpm
yum install postgresql96-server
</pre>
<p>You&#8217;ll get some warning that symlinks can&#8217;t be created but you can ignore them. The new version installs the binaries under <strong>/usr/psql-9.6/bin</strong>.<br />
Log as the postgres user and initialize the new database.</p>
<pre class="brush: bash; highlight: [1]; title: ; notranslate">
/usr/pgsql-9.6/bin/initdb -D /var/lib/pgsql/9.6/data/
The files belonging to this database system will be owned by user &quot;postgres&quot;.
This user must also own the server process.

The database cluster will be initialized with locale &quot;en_US.UTF-8&quot;.
The default database encoding has accordingly been set to &quot;UTF8&quot;.
The default text search configuration will be set to &quot;english&quot;.

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/pgsql/9.6/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

WARNING: enabling &quot;trust&quot; authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    /usr/pgsql-9.6/bin/pg_ctl -D /var/lib/pgsql/9.6/data/ -l logfile start
</pre>
<p>Ignore the line that says that we can start the server. We have to upgrade the current database first. Make sure that the directories below are the same as yours. If not, make changes.</p>
<pre class="brush: bash; highlight: [1]; title: ; notranslate">
/usr/pgsql-9.6/bin/pg_upgrade --old-datadir /var/lib/pgsql/data/ --new-datadir /var/lib/pgsql/9.6/data/ --old-bindir /usr/bin/ --new-bindir /usr/pgsql-9.6/bin/
Performing Consistency Checks
-----------------------------
Checking cluster versions                                   ok

*failure*
Consult the last few lines of &quot;pg_upgrade_server.log&quot; for
the probable cause of the failure.

connection to database failed: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket &quot;/var/lib/pgsql/.s.PGSQL.50432&quot;?


could not connect to old postmaster started with the command:
&quot;/usr/bin/pg_ctl&quot; -w -l &quot;pg_upgrade_server.log&quot; -D &quot;/var/lib/pgsql/data/&quot; -o &quot;-p 50432 -b  -c listen_addresses='' -c unix_socket_permissions=0700 -c unix_socket_directory='/var/lib/pgsql'&quot; start
Failure, exiting
</pre>
<p>Oh boy. If you check the error message, you&#8217;ll get some more info.</p>
<pre class="brush: bash; highlight: [1]; title: ; notranslate">
tail /var/lib/pgsql/pg_upgrade_server.log
server stopped


command: &quot;/usr/bin/pg_ctl&quot; -w -l &quot;pg_upgrade_server.log&quot; -D &quot;/var/lib/pgsql/data/&quot; -o &quot;-p 50432 -b  -c listen_addresses='' -c unix_socket_permissions=0700 -c unix_socket_directory='/var/lib/pgsql'&quot; start &gt;&gt; &quot;pg_upgrade_server.log&quot; 2&gt;&amp;1
waiting for server to start....FATAL:  unrecognized configuration parameter &quot;unix_socket_directory&quot;
 stopped waiting
pg_ctl: could not start server
Examine the log output.
</pre>
<p>The reason being that as of PostgreSQL version 9.3 the config parameter <strong>unix_socket_directory</strong> has been replaced with <strong>unix_socket_directories</strong>. There is a workaround thanks to this <a href="https://dba.stackexchange.com/users/55596/ziggy-crueltyfree-zeitgeister" rel="noopener noreferrer" target="_blank">guy</a>. The link for more info is <a href="https://dba.stackexchange.com/questions/50135/pg-upgrade-unrecognized-configuration-parameter-unix-socket-directory" rel="noopener noreferrer" target="_blank">here</a>.<br />
Pretty much, all you have to do is execute these lines first. Execute these lines as root or sudo user.</p>
<pre class="brush: bash; title: ; notranslate">
mv /usr/bin/pg_ctl{,-orig}
echo '#!/bin/bash' &gt; /usr/bin/pg_ctl
echo '&quot;$0&quot;-orig &quot;${@/unix_socket_directory/unix_socket_directories}&quot;' &gt;&gt; /usr/bin/pg_ctl
chmod +x /usr/bin/pg_ctl
</pre>
<p>Now you can do the upgrade.</p>
<pre class="brush: bash; highlight: [1]; title: ; notranslate">
/usr/pgsql-9.6/bin/pg_upgrade --old-datadir /var/lib/pgsql/data/ --new-datadir /var/lib/pgsql/9.6/data/ --old-bindir /usr/bin/ --new-bindir /usr/pgsql-9.6/bin/
Performing Consistency Checks
-----------------------------
Checking cluster versions                                   ok
Checking database user is the install user                  ok
Checking database connection settings                       ok
Checking for prepared transactions                          ok
Checking for reg* system OID user data types                ok
Checking for contrib/isn with bigint-passing mismatch       ok
Checking for roles starting with 'pg_'                      ok
Checking for invalid &quot;line&quot; user columns                    ok
Creating dump of global objects                             ok
Creating dump of database schemas
                                                            ok
Checking for presence of required libraries                 ok
Checking database user is the install user                  ok
Checking for prepared transactions                          ok

If pg_upgrade fails after this point, you must re-initdb the
new cluster before continuing.

Performing Upgrade
------------------
Analyzing all rows in the new cluster                       ok
Freezing all rows on the new cluster                        ok
Deleting files from new pg_clog                             ok
Copying old pg_clog to new server                           ok
Setting next transaction ID and epoch for new cluster       ok
Deleting files from new pg_multixact/offsets                ok
Setting oldest multixact ID on new cluster                  ok
Resetting WAL archives                                      ok
Setting frozenxid and minmxid counters in new cluster       ok
Restoring global objects in the new cluster                 ok
Restoring database schemas in the new cluster
                                                            ok
Setting minmxid counter in new cluster                      ok
Copying user relation files
                                                            ok
Setting next OID for new cluster                            ok
Sync data directory to disk                                 ok
Creating script to analyze new cluster                      ok
Creating script to delete old cluster                       ok

Upgrade Complete
----------------
Optimizer statistics are not transferred by pg_upgrade so,
once you start the new server, consider running:
    ./analyze_new_cluster.sh

Running this script will delete the old cluster's data files:
    ./delete_old_cluster.sh
</pre>
<p>Start the new database now and check everything. As you can see, the startup script is different. This time we have to specify the version of PostgreSQL. As root do:</p>
<pre class="brush: bash; title: ; notranslate">
systemctl start postgresql-9.6
</pre>
<p>You can revert the change back.</p>
<pre class="brush: bash; title: ; notranslate">
mv -f /usr/bin/pg_ctl{-orig,}
</pre>
<p>Log as postgres user and do a check up. It might take some time if your database is large.</p>
<pre class="brush: bash; title: ; notranslate">
./analyze_new_cluster.sh
</pre>
<p>You can delete the old database if you want.</p>
<pre class="brush: bash; title: ; notranslate">
./delete_old_cluster.sh
</pre>
<p>If you check the new version, you&#8217;ll see that it&#8217;s the same.</p>
<pre class="brush: bash; highlight: [1]; title: ; notranslate">
psql --version
psql (PostgreSQL) 9.2.24
</pre>
<p>The database is upgraded and running 9.6, it&#8217;s just the <strong>psql </strong>binary that&#8217;s the old version. You have to tell the postgres user to use the new binaries. Delete the old binaries first, uninstall the old version, make sure it doesn&#8217;t start on boot and enable the new version. Also, if you have any specific configurations, make sure you compare<strong> postgresql.conf</strong> and <strong>pg_hba.conf</strong> under <strong>/var/lib/pgsql/data</strong> and <strong>/var/lib/pgsql/9.6/data</strong>. Log as root first. Make sure it says 9.2 when you run yum remove.</p>
<pre class="brush: bash; title: ; notranslate">
systemctl disable postgresql
yum remove postgresql
</pre>
<p>Enable postgreSQL to boot on start.</p>
<pre class="brush: bash; title: ; notranslate">
systemctl enable postgresql-9.6
</pre>
<p>Add the following line under <strong>.bash_profile</strong> for the postgres user.</p>
<pre class="brush: bash; title: ; notranslate">
export PATH=$PATH:/usr/pgsql-9.6/bin
</pre>
<p>If you don&#8217;t have a <strong>.bash_profile</strong> file, check if there is any <strong>.bash_profile.rpmsave</strong>. Rename this one as <strong>.bash_profile</strong> and add the above line. It should look like this.</p>
<pre class="brush: bash; title: ; notranslate">
&#x5B; -f /etc/profile ] &amp;&amp; source /etc/profile
PGDATA=/var/lib/pgsql/9.6/data
export PGDATA
# If you want to customize your settings,
# Use the file below. This is not overridden
# by the RPMS.
&#x5B; -f /var/lib/pgsql/.pgsql_profile ] &amp;&amp; source /var/lib/pgsql/.pgsql_profile
export PATH=$PATH:/usr/pgsql-9.6/bin
</pre>
<p>If you log off, log back on as the postgres user or execute <strong>source .bash_profile</strong> and check the version, you&#8217;ll see that you are all set.</p>
<pre class="brush: bash; title: ; notranslate">
psql --version
psql (PostgreSQL) 9.6.11
</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2019/02/146-centos-postgresql-upgrade-postgresql-from-9-2-to-9-6/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
		<item>
		<title>FreeBSD: Upgrade FreeBSD 8.1 to FreeBSD 9.1 – Part II</title>
		<link>https://blog.andreev.it/2013/04/upgrade-freebsd-8-1-to-freebsd-9-1-part-2/</link>
					<comments>https://blog.andreev.it/2013/04/upgrade-freebsd-8-1-to-freebsd-9-1-part-2/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Sun, 07 Apr 2013 22:32:51 +0000</pubDate>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[upgrade]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=678</guid>

					<description><![CDATA[In the part 1, we discussed how to upgrade the OS from 8.1 to&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>In the <a href="https://blog.andreev.it/?p=648" rel="noopener noreferrer" target="_blank">part 1</a>, we discussed how to upgrade the OS from 8.1 to 9.1. But most of the applications that were installed are outdated at this point. In order to upgrade the port tree, use the following commands:</p>
<pre class="brush: bash; title: ; notranslate">
portsnap fetch extract
portsnap fetch update
</pre>
<p>These commands will download the current port tree, but won&#8217;t actually install the applications. At this point it is very important to check if you want to actually upgrade your applications. Some of them might now work, but if they work fine, you might leave them as is. Mind that this might cause some compatibility issues. So, in order to upgrade the installed application, let&#8217;s look what&#8217;s installed. The <a href="http://www.wonkity.com/~wblock/docs/html/portupgrade.html" target="_blank" rel="noopener noreferrer">easiest way</a> is to run: </p>
<pre class="brush: bash; title: ; notranslate">
portmaster -L --index-only| egrep '(ew|ort) version|total install'
</pre>
<p>The output will look similar to this.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2013/04/P029-01.png"><img decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/04/P029-01.png" alt="" width="702" height="489" class="aligncenter size-full wp-image-6278" srcset="https://blog.andreev.it/wp-content/uploads/2013/04/P029-01.png 702w, https://blog.andreev.it/wp-content/uploads/2013/04/P029-01-300x209.png 300w, https://blog.andreev.it/wp-content/uploads/2013/04/P029-01-585x408.png 585w" sizes="(max-width: 702px) 100vw, 702px" /></a><br />
If you want to upgrade an installed application, do:</p>
<pre class="brush: bash; title: ; notranslate">
portmaster openvpn
</pre>
<p>But, don&#8217;t do that without reading /usr/ports/UPDATING file first. As a matter of fact, this is a file that you have to read it before any port updates. For example, you can&#8217;t run:</p>
<pre class="brush: bash; title: ; notranslate">
portmaster pkg-config
</pre>
<p>According to the UPDATING file:</p>
<blockquote><p>
20120726:<br />
  AFFECTS: users of devel/pkg-config<br />
  AUTHOR: bapt@FreeBSD.org</p>
<p>  devel/pkg-config has been replaced by devel/pkgconf</p>
<p>  # portmaster -o devel/pkgconf devel/pkg-config<br />
  or<br />
  # portupgrade -fo devel/pkgconf pkg-config-\*
</p></blockquote>
<p>The same is valid for jpeg. Mind that some of the ports that you have installed are very important and used by many applications. So, spend some time and read the UPDATING file first. Pay special attention on all PHP installs. </p>
<p>What I do is to open three terminal sessions. The first one is where I execute:</p>
<pre class="brush: bash; title: ; notranslate">
portmaster -L --index-only| egrep '(ew|ort) version|total install'
</pre>
<p>The second terminal has /usr/ports/UPDATING file opened, so I can search for the ports remaining that needs to be upgraded, and the third terminal window is where I execute the portmaster command.</p>
<p>If you receive an error &#8220;pkg_version: corrupted record for&#8230;&#8221;, do:</p>
<pre class="brush: bash; title: ; notranslate">
portmaster --check-depends
</pre>
<p>You&#8217;ll be prompted to remove some of the obsolete ports, most likely some php* ports.</p>
<p>Links:<br />
<a href="http://www.wonkity.com/~wblock/docs/html/portupgrade.html">http://www.wonkity.com/~wblock/docs/html/portupgrade.html</a><br />
<a href="https://www.freebsd.org/doc/handbook/ports-using.html">https://www.freebsd.org/doc/handbook/ports-using.html</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2013/04/upgrade-freebsd-8-1-to-freebsd-9-1-part-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>FreeBSD: Upgrade FreeBSD 8.1 to FreeBSD 9.1 &#8211; Part I</title>
		<link>https://blog.andreev.it/2013/04/upgrade-freebsd-8-1-to-freebsd-9-1/</link>
					<comments>https://blog.andreev.it/2013/04/upgrade-freebsd-8-1-to-freebsd-9-1/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Sat, 06 Apr 2013 00:14:25 +0000</pubDate>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[upgrade]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=648</guid>

					<description><![CDATA[This post is based on the Chapter 25 of the official FreeBSD handbook. My&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>This post is based on the Chapter 25 of the official <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html" target="_blank" rel="noopener noreferrer">FreeBSD handbook</a>. My version was the initial release of 8.2 using a generic kernel:</p>
<pre class="brush: bash; highlight: [1]; title: ; notranslate">
uname -a
FreeBSD acidjazz.chombe.org 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011
root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
</pre>
<p>First, make sure you start with a rebooted OS and make a copy of the /etc directory. Then do:</p>
<pre class="brush: bash; title: ; notranslate">
freebsd-update -r 9.1-RELEASE upgrade
</pre>
<p>After a second or two, I received  a very funny error.</p>
<p><code>The update metadata is correctly signed, but failed an integrity check.<br />
Cowardly refusing to proceed any further.<br />
</code><br />
At this point, execute:</p>
<pre class="brush: bash; title: ; notranslate">
sed -i '' -e 's/=_/=%@_/' /usr/sbin/freebsd-update
freebsd-update -r 9.1-RELEASE upgrade
</pre>
<p>Say &#8220;y&#8221; and wait for some time for FreeBSD to inspect and download the necessary files.</p>
<p><code>Looking up update.FreeBSD.org mirrors... 3 mirrors found.<br />
Fetching metadata signature for 8.2-RELEASE from update5.freebsd.org... done.<br />
Fetching metadata index... done.<br />
Inspecting system... done.</p>
<p>The following components of FreeBSD seem to be installed:<br />
kernel/generic src/base src/bin src/cddl src/contrib src/crypto src/etc<br />
src/games src/gnu src/include src/krb5 src/lib src/libexec src/release<br />
src/rescue src/sbin src/secure src/share src/sys src/tools src/ubin<br />
src/usbin world/base world/dict world/doc world/info world/manpages<br />
world/proflibs</p>
<p>The following components of FreeBSD do not seem to be installed:<br />
world/catpages world/games</p>
<p>Does this look reasonable (y/n)? y</p>
<p>Fetching metadata signature for 9.1-RELEASE from update5.freebsd.org... done.<br />
Fetching metadata index... done.<br />
Inspecting system... done.<br />
Fetching files from 8.2-RELEASE for merging... done.<br />
Preparing to download files...<br />
</code><br />
About 30 minutes later, on my VM, which is very low on resources (8GB HDD, 512MB RAM), you&#8217;ll be greeted with the &#8220;message of the day&#8221; /etc/motd. Just do &#8220;:q!&#8221;<br />
<a href="https://blog.andreev.it/wp-content/uploads/2013/04/P028-01.png"><img decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/04/P028-01.png" alt="" width="698" height="429" class="aligncenter size-full wp-image-6272" srcset="https://blog.andreev.it/wp-content/uploads/2013/04/P028-01.png 698w, https://blog.andreev.it/wp-content/uploads/2013/04/P028-01-300x184.png 300w, https://blog.andreev.it/wp-content/uploads/2013/04/P028-01-585x360.png 585w" sizes="(max-width: 698px) 100vw, 698px" /></a></p>
<p>You&#8217;ll get another prompt about new groups in /etc/groups. Say &#8220;y&#8221; to continue.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2013/04/P028-02.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/04/P028-02.png" alt="" width="707" height="428" class="aligncenter size-full wp-image-6273" srcset="https://blog.andreev.it/wp-content/uploads/2013/04/P028-02.png 707w, https://blog.andreev.it/wp-content/uploads/2013/04/P028-02-300x182.png 300w, https://blog.andreev.it/wp-content/uploads/2013/04/P028-02-585x354.png 585w" sizes="(max-width: 707px) 100vw, 707px" /></a><br />
Same thing for /etc/hosts, /etc/manpath.config, /etc/master.passwd, /etc/motd, /etc/passwd, /etc/syslog.conf, /etc&#8230; That&#8217;s why it is important to make a backup of /etc as suggested earlier.<br />
Hit &#8220;CTRL-C&#8221;, when you see the list of files that will be removed as part of the upgrade.<br />
Then do: </p>
<pre class="brush: bash; title: ; notranslate">
freebsd-update install
</pre>
<p>Once everything is completed, do:</p>
<pre class="brush: bash; title: ; notranslate">
shutdown -r now
</pre>
<p>&#8230;.and then do:</p>
<pre class="brush: bash; title: ; notranslate">
freebsd-update install
</pre>
<p> again&#8230;<br />
After the update finishes, you&#8217;ll see this message.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2013/04/P028-03.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/04/P028-03.png" alt="" width="802" height="135" class="aligncenter size-full wp-image-6274" srcset="https://blog.andreev.it/wp-content/uploads/2013/04/P028-03.png 802w, https://blog.andreev.it/wp-content/uploads/2013/04/P028-03-300x50.png 300w, https://blog.andreev.it/wp-content/uploads/2013/04/P028-03-768x129.png 768w, https://blog.andreev.it/wp-content/uploads/2013/04/P028-03-585x98.png 585w" sizes="(max-width: 802px) 100vw, 802px" /></a><br />
The <a href="http://blog.andreev.it/?p=678" target="_blank" rel="noopener noreferrer">next part</a> shows how to do the same.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2013/04/upgrade-freebsd-8-1-to-freebsd-9-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
