They are in conflict when I try to install them conveniently. How can I have both of them at the same time?
Asked
Active
Viewed 2,900 times
1 Answers
5
Create your own package which does not conflict.
- Use e.g.
asp checkout gnu-netcatto download the build sources. - Edit trunk/PKGBUILD to change the name to something that no longer matches the 'conflicts' parameter in openbsd-netcat. For example,
pkgname=gnu-netcat-renamed. Edit the package() function to rename the actual files that will be installed. For example:
mv "$pkgdir"/usr/bin/{netcat,gnu-netcat} mv "$pkgdir"/usr/share/man/man1/{netcat,gnu-netcat}.1.gz # 'nc' is a symlink to 'netcat' so it is not enough to merely rename it rm "$pkgdir"/usr/bin/nc ln -s gnu-netcat "$pkgdir"/usr/bin/gnu-ncUse
makepkg -ito compile and install the new package.
You will only need to do this once, because gnu-netcat has not received any updates in the last 11 years and is unlikely that it ever will.
grawity
- 501,077