Upgrading from Q1 to Q2

pkg downloads and install packages.
But after this it downloads and install packages.
& after this it downloads and installs the same packages ad infinitum.

Looks like a bug in the package database ?
 
Please give a better description of your problem. What did you do, what output do you get, and so on ...

Just as a side note, the official builders didn't build the new quarterly branch yet. Some builds are currently running.
 
First I checkout the new branch & build with poudriere:
Code:
git clone --branch 2023Q2 https://git.FreeBSD.org/ports.git /usr/ports
/usr/bin/nice -n 15 /usr/local/bin/poudriere bulk -b "quarterly" -j $JAIL -p $PORTS -f $PACKAGES
Then i install
Code:
export P="/jails/a/pou/mypackages"
pkg update -f
cat $P | grep -v pkg | xargs -I {} sh -c "echo {}; pkg install  -y  {}"
pkg update -f
pkg upgrade
pkg clean
pkg clean -a
Now when i rerun the install script you would expect no changes because eveything already installed from Q2.
But it downloads at new... Which is not logic.
 
Ok and what is the purpose of this kind of weird script? All you need for the upgrade is pkg upgrade. Make it pkg upgrade -f if you want to reinstall everything. Use pkg autoremove to remove no longer needed dependencies, and pkg clean -a to completely clean your local cache if that's what you want.

What are you trying to achieve with a script explicitly installing individual packages? Of course this does the same thing every time you execute it.
 
Did weird script worked fine in the past.
Let's say i go from version X+1 to version X+1 with a certain package. Then it should do nothing. Not even download.
Currently it does not even remember i'm already on version X+1. And so it downloads that already installed version.
 
This script makes no sense. You explicitly call pkg install on something that's probably a list of package names, for every single entry. Why?

Just do pkg upgrade, that's all. And calling it a second time should indeed do nothing.
 
Ok, I do a simpla 'pkg upgrade". It fetch 650 packages.
I do a simple "pkg upgrade" after it. It fectch 650 packages...
 
Back
Top