Fedora Linux Support Community & Resources Center
  #1  
Old 11th August 2007, 08:21 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,048
TETEX font map - .newrpm

The updates for TETEX packages created a .newrpm file for all the font maps.
This is ridicules as only about .000001% of the users would know what needed to be looked at and changed. It will take hours.

Can I remove these with nodeps and reinstall without disturbing some other part of the system, like scripts, /etc, ?



Updating : tetex-fonts ####################### [ 2/18]
Updating : tetex ####################### [ 3/18]
Updating : tetex-dvips ############### [ 4/18]warning: /usr/share/texmf/fonts/map/dvips/antp/antp.map created as /usr/share/texmf/fonts/map/dvips/antp/antp.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/antt/cork-antt.map created as /usr/share/texmf/fonts/map/dvips/antt/cork-antt.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/antt/cs-antt.map created as /usr/share/texmf/fonts/map/dvips/antt/cs-antt.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/antt/exp-antt.map created as /usr/share/texmf/fonts/map/dvips/antt/exp-antt.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/antt/greek-antt.map created as /usr/share/texmf/fonts/map/dvips/antt/greek-antt.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/antt/qx-antt.map created as /usr/share/texmf/fonts/map/dvips/antt/qx-antt.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/antt/t2a-antt.map created as /usr/share/texmf/fonts/map/dvips/antt/t2a-antt.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/antt/t2b-antt.map created as /usr/share/texmf/fonts/map/dvips/antt/t2b-antt.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/antt/t2c-antt.map created as /usr/share/texmf/fonts/map/dvips/antt/t2c-antt.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/antt/t5-antt.map created as /usr/share/texmf/fonts/map/dvips/antt/t5-antt.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/antt/texnansi-antt.map created as /usr/share/texmf/fonts/map/dvips/antt/texnansi-antt.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/antt/wncy-antt.map created as /usr/share/texmf/fonts/map/dvips/antt/wncy-antt.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/cc-pl/ccpl.map created as /usr/share/texmf/fonts/map/dvips/cc-pl/ccpl.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/8r-base.map created as /usr/share/texmf/fonts/map/dvips/context/8r-base.map.rpmnew
Updating : tetex-dvips ################ [ 4/18]warning: /usr/share/texmf/fonts/map/dvips/context/context-base.map created as /usr/share/texmf/fonts/map/dvips/context/context-base.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/cork-public-lm.map created as /usr/share/texmf/fonts/map/dvips/context/cork-public-lm.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/cork-var-exclusive-public-lm.map created as /usr/share/texmf/fonts/map/dvips/context/cork-var-exclusive-public-lm.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/cork-var-public-lm.map created as /usr/share/texmf/fonts/map/dvips/context/cork-var-public-lm.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/ec-base.map created as /usr/share/texmf/fonts/map/dvips/context/ec-base.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/ec-public-lm.map created as /usr/share/texmf/fonts/map/dvips/context/ec-public-lm.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/ec-var-exclusive-public-lm.map created as /usr/share/texmf/fonts/map/dvips/context/ec-var-exclusive-public-lm.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/ec-var-public-lm.map created as /usr/share/texmf/fonts/map/dvips/context/ec-var-public-lm.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/original-adobe-euro.map created as /usr/share/texmf/fonts/map/dvips/context/original-adobe-euro.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/original-ams-cmr.map created as /usr/share/texmf/fonts/map/dvips/context/original-ams-cmr.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/original-ams-euler.map created as /usr/share/texmf/fonts/map/dvips/context/original-ams-euler.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/original-base.map created as /usr/share/texmf/fonts/map/dvips/context/original-base.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/original-context-symbol.map created as /usr/share/texmf/fonts/map/dvips/context/original-context-symbol.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/original-dummy.map created as /usr/share/texmf/fonts/map/dvips/context/original-dummy.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/original-empty.map created as /usr/share/texmf/fonts/map/dvips/context/original-empty.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/original-micropress-informal.map created as /usr/share/texmf/fonts/map/dvips/context/original-micropress-informal.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/original-public-csr.map created as /usr/share/texmf/fonts/map/dvips/context/original-public-csr.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/original-public-lm.map created as /usr/share/texmf/fonts/map/dvips/context/original-public-lm.map.rpmnew
Updating : tetex-dvips ################# [ 4/18]warning: /usr/share/texmf/fonts/map/dvips/context/original-public-plr.map created as /usr/share/texmf/fonts/map/dvips/context/original-public-plr.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/original-public-vnr.map created as /usr/share/texmf/fonts/map/dvips/context/original-public-vnr.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/original-vogel-symbol.map created as /usr/share/texmf/fonts/map/dvips/context/original-vogel-symbol.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/original-youngryu-px.map created as /usr/share/texmf/fonts/map/dvips/context/original-youngryu-px.map.rpmnew
warning: /usr/share/texmf/fonts/map/dvips/context/original-youngryu-tx.map created as /usr/share/texmf/fonts/map/dvips/context/original-youngryu-tx.map.rpmnew

# and another 200 lines
__________________
Do the Math
Reply With Quote
  #2  
Old 11th August 2007, 08:34 PM
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 43
Posts: 4,168
I was wondering about that too. Is the rpmnew file suppose to replace the original manually?
Reply With Quote
  #3  
Old 11th August 2007, 09:12 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,048
Yes, but not all newrpm files can be treated the same, as you may want to keep a custom file, or only part of the new, or none, or merge.

This could be handled logically with org, curr, sav, new and some diff, cart/horse/chicken/egg logic in a script or program or the RPM system.
It could save ten's of thousand from having to do anything, and those that did can get the newest changes with their custom saved. (They could cp it back, merge, or replace.

Anyway, this came out of the blue from updates and was never in updates-testing.
Should not have happened.

I did a yum remove on the main tetex packag names and there was only 1 or 2 deps so I let it run.
Then I yum installed all 6 at once.
Spot checked the map to map.newrpms and they seem to be created today and are the same sixe.
This means the yum remove didn't even totoal remove (old) newrpm's.
But it was 100 times faster that cd, cat,cat, diff, gedit, save mynew, cp mynew to map, rm newrpm, rm mynew in very/long/path/names for 200 times.

SJ
__________________
Do the Math
Reply With Quote
  #4  
Old 12th August 2007, 02:54 AM
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 5,768
I created this little script to clean up the changes. It removes the .rpmnew file if no difference with the old file exists, keeps it otherwise. It logs the action taken in tetexnew.log.
Code:
#!/bin/bash
NEW_FILE="tetex.new"
NUM_REMOVED=0
NUM_KEPT=0
LOG_FILE="tetexnew.log"
cat /dev/null > ${LOG_FILE}
find /usr/share/texmf -name "*.rpmnew" > ${NEW_FILE}
while read newfile
do
   if diff ${newfile} ${newfile%.rpmnew} > /dev/null
   then
      rm -f ${newfile}
      ((NUM_REMOVED=NUM_REMOVED+1))
      echo "Removed ${newfile}: no difference with old file." >> ${LOG_FILE}
   else
      ((NUM_KEPT=NUM_KEPT+1))
      echo "Kept ${newfile}: differences with old file exist." >> ${LOG_FILE}
   fi
done < ${NEW_FILE}
rm -f ${NEW_FILE}
echo -e "\n********\nSummary:\n********"
printf '%25s %d\n' ".rpmnew files found:" $((NUM_REMOVED+NUM_KEPT))
printf '%25s %d\n' "Files removed:" ${NUM_REMOVED}
printf '%25s %d\n' "Files kept:" ${NUM_KEPT}
echo -e "\nSee the log file ${LOG_FILE} for details."
On my system it came up with only 99 .rpmnew files under /usr/share/texmf, and only 1 of them (/usr/share/texmf/pxdvi/XDvi.rpmnew) had a change (so the other 98 were removed).
Reply With Quote
  #5  
Old 12th August 2007, 07:14 AM
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 43
Posts: 4,168
I love you Rupert! :P

Now lets kick someone's @ss for making this mess in the first place.

My results from Rupert's script.
[root@kiriyamablevins marc]# ./fixrpm

********
Summary:
********
.rpmnew files found: 97
Files removed: 97
Files kept: 0

See the log file tetexnew.log for details.
[root@kiriyamablevins marc]#

Again, thanks!
Reply With Quote
  #6  
Old 14th August 2007, 11:13 AM
orie0943 Offline
Registered User
 
Join Date: Apr 2005
Posts: 1
Thank you for a very useful script, which with a little tweaking removed all the other .rpmnew files that yum had left on my system.
Reply With Quote
Reply

Tags
font, map, newrpm, tetex

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
tetex-base & tetex-extra in Fedora 9? ladaja Using Fedora 2 2nd December 2008 12:32 PM
Update: tetex-font-cm-lgc-0.3-0.fdr.1 (FC1,FC2,stable) fedora-package-announce-admin@fedora.us Advisories & Updates 0 6th June 2004 12:26 PM
New: tetex-font-kerkis-2.0-0.fdr.2 (FC1,FC2,stable) fedora-package-announce-admin@fedora.us Advisories & Updates 0 11th May 2004 10:24 AM
New: tetex-font-cm-lgc-0.2.1-0.fdr.2 (FC1,FC2,stable) fedora-package-announce-admin@fedora.us Advisories & Updates 0 11th May 2004 10:18 AM
New: tetex-font-tipa-1.3-0.fdr.1 (FC1,FC2,stable) fedora-package-announce-admin@fedora.us Advisories & Updates 0 5th May 2004 06:22 PM


Current GMT-time: 20:53 (Sunday, 21-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Diversity Hair Salon and Boutique Travel Photos on Instagram - La Perla NERA Instagram Photos - Sony Building Photos on Instagram - Mandeville Lake - Kuang Si Waterfall. Luang Prabang. Laos