Date: Wed, 22 May 2019 13:54:57 +0100 From: Grzegorz Junka <list1@gjunka.com> To: freebsd-ports@freebsd.org Subject: Re: Reinstalling with dependencies Message-ID: <b63a7aff-cae2-0802-d8b4-a81ef41d2ba7@gjunka.com> In-Reply-To: <0f6613c4-d399-7155-db68-14a9b1511b8a@gjunka.com> References: <dc938265-c181-f8e6-9a4d-1e9214497be1@gjunka.com> <20190522115101.tl36hg2wmclev3oq@ivaldir.net> <c11701e0-6808-e864-0ff7-8d178bf458b8@gjunka.com> <9dac2237-c1b5-8317-a5bf-c1a4b7d89030@quip.cz> <0f6613c4-d399-7155-db68-14a9b1511b8a@gjunka.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 22/05/2019 13:48, Grzegorz Junka wrote: > > On 22/05/2019 13:42, Miroslav Lachman wrote: >> Grzegorz Junka wrote on 2019/05/22 14:11: >> >> [...] >> >>> Are you saying that even if elinks was reinstalled with dependencies >>> that wouldn't help? >>> >>> We have two issues here: >>> >>> 1. How to reinstall a package with dependencies (as stated in the >>> subject) >> >> You can try something like this >> >> pkg install -f `pkg info -d elinks | tr -d :` >> >> >> pkg info -d will list direct dependencies of the port and then this >> list is given to command pkg install -f. >> > > That's a good idea. Thank you. I may probably want to strip versions > too, to allow upgrading to more recent versions. But I can take it > from there. > However, I just realized that it may not be enough, i.e. pkg info -d lists only direct dependencies, so this would allow me to reinstall all direct dependencies but not recursively. Adding a loop in bash or something is another solution but it starts to become clunky.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b63a7aff-cae2-0802-d8b4-a81ef41d2ba7>