User Tools

Site Tools


deinstall_removed_port

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

deinstall_removed_port [2020/01/30 10:47] – created Nicodeinstall_removed_port [2020/01/30 11:00] (current) – removed Nico
Line 1: Line 1:
-====== Deinstall an already removed port on FreeBSD ====== 
  
-Sometimes we use alternate ports (in my case, openssl111, to get TLS 1.3 under nginx), and the port get replaced by another version (openssl111 got deleted and openssl was upgraded to 1.1.1) 
- 
-pkg will process dependencies and uninstall all software built against openssl111. And we cannot "make deinstall" openssl111 as the port has been removed. 
- 
-So assuming we are replacing a port with another one with the same version, we can create a temporary port. I use jails so I have to do this in basejail: 
- 
-<code> 
-cd /path/to/basejail/usr/ports 
-cp -vrp openssl openssl111 
-sed -i bak s/openssl/openssl111/ openssl111/Makefile 
-cd openssl111 
-make deinstall 
-</code> 
- 
-Voila! You just have to install openssl now. 
deinstall_removed_port.1580377672.txt.gz · Last modified: 2020/01/30 10:47 by Nico

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki