PATH problems with hombrew

I am having several PATH problems with my bazzite install on my desktop PC


first sometimes brew packages are randomly not found for example


I have the bazzite-cli bling enabled and running cat gives

 cat .bash_profile
fish: Unknown command: bat
~/.config/fish/functions/cat.fish (line 2): 
  bat $argv
  ^~^
in function 'cat' with arguments '.bash_profile'


but i get this if I try to install bat

brew install bat
==> Downloading https://formulae.brew.sh/api/formula.jws.json
###################################################################################################################################################################################### 100.0%
Warning: bat 0.24.0_1 is already installed and up-to-date.
To reinstall 0.24.0_1, run:
  brew reinstall bat


and when brew packages are working they override my system packages for example

which systemctl
/home/linuxbrew/.linuxbrew/bin/systemctl
Solution
updated again and rebooted and its working now :shruggie:

anyway my unlinked systemd with brew unlink systemd and now no system packages are getting overriden to brew packages so seems like my brew problems are fixed
Was this page helpful?