frequency alphabet for files in /var/sadm/install/contents

unix

    Next

  • 1. Replacing Sun's SNMP with net-snmp
    Are there any dangers of replacing Sun's SNMP with net-snmp ( formerly ucd-snmp ) ? e.g. Does Solaris Volume Manager rely on Sun SNMP ?
  • 2. Solaris 9 Chat Server / Clients
    Anyone have any input on a good chat server/client solution I can install on Solaris 9 on a WAN ? I'd prefer a solution I could purchase and get some level of support for. Any help would be greatly appreciated. Thanks Steve
  • 3. =?UTF-8?B?amF2YSBkZXNrdG9w?=
    > hi all > > i am using java desktop system, release 3 > is there a way to get a console window with > error and warning messages, as i know it > from cde or good old openwin ? > > best regards > hans Hi, I dont know if this is what Your are looking for, but I use a simple tail -f /var/adm/messages for this purpose. ruediger -- ffff fff
  • 4. SunRay Software vs. Live Upgrade
    I'm in the process of building Boot Environment for Live Upgrade from Solaris 8 to Solaris 9. I will need to upgrade SunRay Software (SRSS) from v.2 to v.3 as well, as the server to be upgraded runs a bunch of SunRays. I'm wondering whether the SRSS could be upgraded in the new (not yet activated) BE only, so that when I activate the new BE and reboot the server, no further software installation needs to be done, and so, reduce the downtime of the server. It doesn't seem that the 'utinstall' script from SRSS could achieve what I want without changes - or could it? Hints much appreciated. Kaja -- Kaja P. Christiansen Department of Computer Science, University of Aarhus phone: +45 8942 5713, fax: +45 8942 5624

frequency alphabet for files in /var/sadm/install/contents

Postby gl » Sun, 25 Jan 2004 02:41:41 GMT

not sure if anyone will have any use for this, but here goes.
(i got this as a side effect.)

i wanted to know what characters appeared in file names NORMALLY,
not everything that was possible.

nawk '{print $1}' /var/sadm/install/contents > scratch

take scratch, ignore / and newline, and count the characters.
ignore = since that serves to indicate links.  ignore # since
that occurs only as an artifact of the contents file.
remember that things like "usr" will get counted a lot.
here's what i got.  i did notice the tilde, which looks like a
packaging mistake.  i tracked it down:

/usr/share/lib/mailx/mailx.help
/usr/share/lib/mailx/mailx.help.~

SUNWcsu package.  but the two files are indeed quite
different, so i think it's not a mistake.

287074	s
224890	a
203628	e
190887	r
179342	o
179100	p
162660	i
155725	t
141892	n
140474	l
140236	.
131468	m
120406	c
81012	u
78606	S
74962	b
70963	d
66863	U
63377	W
59706	v
52406	g
50227	N
49836	h
49076	2
40985	f
39950	6
37067	3
31540	_
29449	k
26785	-
26317	1
23642	w
22806	x
22763	0
22096	C
15593	4
12734	j
12081	9
11736	T
11595	X
11346	7
10921	y
10081	E
10076	5
9697	8
8247	R
6931	D
6709	+
6621	V
5759	A
5395	I
5330	M
5150	F
5055	B
4412	P
3863	L
3134	O
2587	z
2575	%
2366	J
2295	G
1915	H
1598	q
1591	Z
1123	$
1108	K
673	,
262	Y
220	Q
125	:
82	@
1	~

@ usually, but not always, occurs in /dev or /devices.  (only 3,
all in /usr)
"," usually occurs in combination with "SUNW", in /usr/platform
and java primarily.


one frequency alphabet for ordinary english i found:

etoanrishcdlfmugypwbvkxjqz

though, of course, i don't have character counts.

j.
-- 
Jay Scott		512-835-3553		 XXXX@XXXXX.COM 
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div.                   S224
University of Texas at Austin

Re: frequency alphabet for files in /var/sadm/install/contents

Postby jonathan-ggl » Sun, 25 Jan 2004 07:54:18 GMT



You're heavily biasing directory paths (as you note).  You should
process the names by cutting out the symlink targets, and removing
everything before the final /.  That way, you just get file names.

% sed -e 's:[= ].*::' -e 's:.*/::' < /var/sadm/install/contents >
scratch

Since the directories involved also have contents entries, this evens
up the footing.  Smashing case as well, I get:

69603 e
69105 t
63131 .
57132 s
52000 a
51417 i
50243 l
49212 o
45750 m
43911 n
42876 r
42615 c
40819 p
30102 d
25734 g
22981 h
21796 b
21746 f
20836 -
20825 _
20798 u
14520 x
11181 1
10912 v
10233 3
 9555 k
 7143 w
 6872 y
 5770 2
 5564 j
 5292 8
 5010 0
 3642 5
 3616 4
 3557 9
 2639 z
 2244 6
 2199 %
 1489 q
 1165 7
  434 :
  200 +
  147 ,
   71 @
   57 $
    2 #
    1 ~

which is much closer to the frequency alphabet you site:


Cheers,
- jonathan

Similar Threads:

1.pkg - recreated /var/sadm/install/contents

For some unknown reason, /var/sadm/install/contents is missing
on a couple of our systems, making pkginfo and friends useless.
A web search has not turned up any method for recreating the
database.

So, is there a magic set of commands that I can run to
repopulate that ugly beast?

Linolil

For example; if an RPM database gets corrupt on a linux system.

rm -f /var/lib/rpm/__db*
rpm -vv --rebuilddb

2.Repost: Solaris Live Upgrade: questions about /var/sadm

Sorry for the report, seems like my news reader misbehaved (Ah, MSFT!)

 According to the solaris FAQ:

--------8<-----------------

|3.40) Why does installing patches take so much space in /var/sadm?

    All the files that are replaced by a patch are stored under
    /var/sadm/patch/<patch-id>/save so the patch can be safely
    backed out.  Newer patches will save the old files
    under /var/sadm/pkg/<pkg>/save/<patch-id>/undo.Z, for each package
    patches.

    You can remove the <patchdir>/save directory provided you also
    remove the <patchdir>/.oldfilessaved file.  Newer patches will not
    install a .oldfilessaved file.

    Alternatively, you can install a patch w/o saving the old
    files by using the "-d" flag to installpatch.

|3.41) Do I need to back out previous versions of a patch?

    No, unless otherwise stated in the patch README.
    If the previous patch installation saved the old
    files, you may want to reclaim that space.

    Patches can be backed out with (Solaris 2.6+):
     patchrm <patch-id>

    or in earlier releases:

     /var/sadm/patch/<patch-id>/backoutpatch <patch-id>

    Backoutpatch can take an awful long time, especially when the
    patch contained a lot of files.  This is fixed in later versions
    of backoutpatch.

---------------->8---------------------------

Prior to doing the live upgrade, I would like to minimize the size of my
root partition
(containing /var in my case) Can I safely remove all patches (not just the
save directories)
from /var/sadm/patches or will live upgrade do it automatically ?

I presume that after a solaris upgrade, the liste of installed patches on
the system will be NULL ?

Another last point, does "back out patch" mean to go back to the state
BEFORE the patch was applied ?
I don't understand the 3.41 paragraph. What does it mean ? It seems to mean
that whenever you apply a new
patch, you should go back to the previous version before installing ?

Ex: Original package = blabla-01

Apply patch blabla-02  (BlaBla-01 saved)

You now want to apply patch blabla-03.

Does question 3.41 ask: "if you need to install patch blabla-03 you should
first back ou to blabla-01 ?"

If so, what do you do if the README tells you that you have to, but you
REMOVED the save directory ?

Thanks !


3.Solaris Live upgrade: questions about /var/sadm/patch

 According to the solaris FAQ:--------8<-----------------|3.40) Why does
installing patches take so much space in /var/sadm?    All the files that
are replaced by a patch are stored under    /var/sadm/patch/<patch-id>/save
so the patch can be safely    backed out.  Newer patches will save the old
files    under /var/sadm/pkg/<pkg>/save/<patch-id>/undo.Z, for each package
patches.    You can remove the <patchdir>/save directory provided you also
remove the <patchdir>/.oldfilessaved file.  Newer patches will not
install a .oldfilessaved file.    Alternatively, you can install a patch w/o
saving the old    files by using the "-d" flag to installpatch.|3.41) Do I
need to back out previous versions of a patch?    No, unless otherwise
stated in the patch README.    If the previous patch installation saved the
old    files, you may want to reclaim that space.    Patches can be backed
out with (Solaris 2.6+):     patchrm <patch-id>    or in earlier releases:
/var/sadm/patch/<patch-id>/backoutpatch <patch-id>    Backoutpatch can take
an awful long time, especially when the    patch contained a lot of files.
This is fixed in later versions    of
backoutpatch.---------------->8---------------------------Prior to doing the
live upgrade, I would like to minimize the size of my root partition
(containing /var in my case) Can I safely remove all patches (not just the
save directories)from /var/sadm/patches or will live upgrade do it
automatically ? I presume that after a solaris upgrade, the liste of
installed patches on the system will be NULL ?Another last point, does "back
out patch" mean to go back to the state BEFORE the patch was applied ? I
don't understand the 3.41 paragraph. What does it mean ? It seems to mean
that whenever you apply a newpatch, you should go back to the previous
version before installing ?Ex: Original package = blabla-01Apply patch
blabla-02  (BlaBla-01 saved)You now want to apply patch blabla-03.Does
question 3.41 ask: "if you need to install patch blabla-03 you should first
back ou to blabla-01 ?" If so, what do you do if the README tells you that
you have to, but you REMOVED the save directory ?Thanks !


4./var/sadm/pkg is very huge

Hello.

I noticed that my /var/sadm/pkg is rather big. It's currently about 1.7g.
Can I deleted no longer required "save" directories from there (like
/var/sadm/pkg/SUNWzfsu/save)?

Thanks,

Alexander Skwar

5.Cleaning Up /var/sadm

6. /var/sadm/pkg direcotry Q

7. /var/sadm/pkg

8. for huge "recommended" patch, not enough room in /var/sadm/patch



Return to unix

 

Who is online

Users browsing this forum: No registered users and 23 guest