OS/2, eCS & ArcaOS - Technical > Setup & Installation

How to reinstall files missing from /usr/bin?

<< < (3/3)

ivan:
Hi Pete,

I just checked and he has an updated version on his site  http://altsan.org/os2/fixpaks/fixgraphics.html  you just have to look at what is there.

Dave Yeo:

--- Quote from: Pete on February 13, 2025, 11:28:46 pm ---Hi Steven

Yes, rpm -qa > rpmlist.txt seems to have all the previously installed packages showing.
Guess I can just work through the list (re)installing 1 by 1 - unless there is some way of presenting rpm with a list to (re)install?


Thanks

Pete

--- End quote ---

Wonder if using ANPM, Manage-->Yum Tools-->Import Package List... would work?
Once finished, there's Export Package List... that might be a good idea, and that's for everyone being a good idea.

Dariusz Piatkowski:
'yum history' will give you a breakdown of what what installed and when.

You could then chose to re-execute the specific TRX ID, but by all accounts this is a vastly manual effort.

Steven Levine:

--- Quote from: Dave Yeo on February 14, 2025, 03:49:49 am ---Wonder if using ANPM, Manage-->Yum Tools-->Import Package List... would work?
Once finished, there's Export Package List... that might be a good idea, and that's for everyone being a good idea.

--- End quote ---

It should.  What Pete will need to do is map the rpm file names to package names which is easy to do.

Another option using 4OS2 is something like

  for %XX in ( @rpmlist.txt ) rpm --install %XX

which should install what needs to be installed and will complain about what's already installed.

rpm will take of list of rpm file names on the command line, but then one needs to beware of command line length limits.

I would recommend using ANPM since it does a better job of ensuring that the packages get installed in the required order.

Remy:
I tried both cmd:

a.  yum list installed *       (the one I suggested - sorted result with pkgf name, release and status) 
b.  rpm -qa                         (the other nice cmd suggested under the post - unsorted result) 

Same package count here (no difference)

Navigation

[0] Message Index

[*] Previous page

Go to full version