OS/2, eCS & ArcaOS - Technical > Setup & Installation
How to reinstall files missing from /usr/bin?
Pete:
Hi All
Posted this earlier but it seems to have disappeared...
This is a question for our *nixy-knowledgeable friends.
Due to distraction - wife having diabetic problems - I managed to delete the contents of /usr/bin and I don't have an up-to-date backup...
I fired up ANPM which downloaded and installed the current yum package(s) and I am wondering if there is anyway to reinstall my "missing" files to /usr/bin from the various packages within the /var/cache/yum subdirectories - doesn't look possible from within ANPM...
All help appreciated
Pete
Remy:
Hi Pete !
Did you check with yum command ?
You can get a list of all installed packages using:
yum list installed *
or yum list installed * >mylist.txt (save into mylist.txt)
Then check yum help
yum --help
There is a re-install packages option.
Regards
Martin Iturbide:
Hello Remy
Some time ago people on this forum help me create this article:
- https://www.os2world.com/wiki/index.php?title=RPM:_Switching_from_i686_to_Pentium4
It has a different scope, and maybe it is outdated for switching to i686 to Pentium 4 (Maybe there are easy procedures today), but there is a REXX script that may help you proving the information of what was installed on your system using the same "yum list" command.
Check it out to see if it works for you.
Regards
Remy:
--- Quote from: Martin Iturbide on February 13, 2025, 02:54:05 pm ---Hello Remy
Some time ago people on this forum help me create this article:
- https://www.os2world.com/wiki/index.php?title=RPM:_Switching_from_i686_to_Pentium4
It has a different scope, and maybe it is outdated for switching to i686 to Pentium 4 (Maybe there are easy procedures today), but there is a REXX script that may help you proving the information of what was installed on your system using the same "yum list" command.
Check it out to see if it works for you.
Regards
--- End quote ---
It looks like you are missing some installed packages (e.g. ASPIROUT AN base installed)
Because you do a grep install (fist line which may contain INSTALL is taken too like: in french Paquets installés)
I think that first comment line may always have less than 3 words.
May I suggest something close to your rexx but not using a temporary output file during the process:
/* REXX to get just package names from RPM installed output */
rc = SysLoadFuncs()
Parse Arg fileout
rc = SysFileDelete(fileout)
list = ''
NEWQ= 'YUM'||time(S)
NEWQ=RXQUEUE('Create',NEWQ)
oq = RXQUEUE('Set',NEWQ)
address cmd 'yum list installed * 2>&1 |RXQUEUE 'NEWQ' /FIFO'
Do queued()
parse pull pkgs
If words(pkgs)>2 then do
parse var pkgs package'.'.
list = Strip(list || ' ' || package)
End
End
rc = Lineout(fileout,'yum install -y 'list)
call RXQUEUE 'Delete',NEWQ
call RXQUEUE 'Set',oq
Return
Regards
Pete:
Hi All
Thanks for responses to date.
Sadly they all seem to show the current installed list not the list of packages that existed prior to my cockup.
Looks like reinstalling yum has wiped out the package list and history.
I tried reinstall:
yum reinstall J:\var\cache\yum\netlabs-rel\packages\sane-backends-1.0.28-2.oc00.pentium4.rpm
which resulted in
No package matched to remove: sane-backends-0:1.0.28-2.oc00
Error: Problem in reinstall: no package matched to remove
I also tried:
yum install J:\var\cache\yum\netlabs-rel\packages\sane-backends-1.0.28-2.oc00.pentium4.rpm
which resulted in packages being downloaded.
I guess I will have to reinstate the missing bits 1 (+whatever dependencies) at a time ...
Thanks
Pete
Navigation
[0] Message Index
[#] Next page
Go to full version