06-04-2009
The first suggestion I'd make is to do a fresh install. That will prevent a lot of grief.
Now, what do you mean by "automated"? You still have to tell the shell which packages need to be removed. Stuff like Gnome, StarOffice, they are defined in clusters. Star Office is installed from SUNWCstaroffice, Gnome/JDS is SUNWCgna11* (there are 2 or three). So, you could get a list of the packages in the cluster you want to remove, and pass it to a pkgrm loop. If you have a test box somewhere, you may even try and see if pkgrm would remove the cluster (never tride it before, but now I'm curious).
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Can any one help me remove the unwanted data? I would want to remove the complete event id 4910 ( the type there is INFO), that means, I have to remove starting from 7th - 19th lines. can any one of you please help?
Thanks, (24 Replies)
Discussion started by: hitmansilentass
24 Replies
2. Shell Programming and Scripting
I have set of sources and the respective resolution. Please advice how to resolve the same using Unix shell scripting.
Source 1:
=======
<ext:ContactInfo xmlns:ext="urn:AOL.FLOWS.Extensions">
<ext:InternetEmailAddress>AOL@AOL.COM</ext:InternetEmailAddress>
</ext:ContactInfo>
Resoultion... (1 Reply)
Discussion started by: ambals123
1 Replies
3. UNIX for Advanced & Expert Users
I have a file with the below data, i would like to remove the end blank lines with no data. I used the below commands but could not able to succeed, could you please shed some light.
Commands Used:
sed '/^$/d' input.txt > output.txt
grep -v '^$' input.txt > output.txt
input.txt file... (5 Replies)
Discussion started by: Ariean
5 Replies
4. Shell Programming and Scripting
Context:
I need to remove unwanted newlines from a data file listing books and associated data. Here is a sample listing ( line numbers included ):
1 360762| Skip-beat! 14 /| 9781421517544| nb | 2008.| Nakamura, Yoshiki.| NAKAMUR | Kyoko Mogami followed
2 her true love Sho to Tokyo to... (6 Replies)
Discussion started by: Bubnoff
6 Replies
5. Emergency UNIX and Linux Support
We have a huge makefile composing of inclusion of libraries, objects and system libraries to generate a binary.
How do we find out that which of the libraries we can remove in the most efficient way? Doing hit and trial method is a waste of time and can during the linking with some post linking... (12 Replies)
Discussion started by: uunniixx
12 Replies
6. Shell Programming and Scripting
I have a .xml file, where i need some output. The xml file is like:
Code:
<?******?></ddddd><sssss>234</dfdffsdf><sdhjh>534</dfdfa>.........
/Code
I need the output like:
code
234
534
.
.
.
/code
How can i do it? (5 Replies)
Discussion started by: anupdas
5 Replies
7. Shell Programming and Scripting
Hello..I have a text file that need to remove unwanted text. This is the original file.
No. Time Source Destination Protocol Info
16 0.649949 10.1.1.101 209.225.11.237 HTTP POST /scripts/cms/xcms.asp HTTP/1.1 ... (9 Replies)
Discussion started by: taxi
9 Replies
8. Shell Programming and Scripting
Hi Guys,
Can someone give me a hand on how I can remove unwanted strings like "<Number>" and "</Number>" and retain only the numbers from the input file below.
INPUT FILE:
<Number>10050000</Number>
<Number>1001340001</Number>
<Number>1001750002</Number>
<Number>100750003</Number>... (8 Replies)
Discussion started by: pinpe
8 Replies
9. Shell Programming and Scripting
I have this Input File with extra double quotes in the middle. Please suggest how to handle this condition.
Input File:
"123985","SAW CUT CONCRETE SLAB 20"THICK",,"98.57","","EACH","N"
"204312","ARMAFLEX-1 3/8 X 3"",,"2.48","","PER FOOT","N"
"205745","MISTING HEAD HOLLOW CONE "C"... (3 Replies)
Discussion started by: BICC
3 Replies
10. Shell Programming and Scripting
Hi,
I have a very big file 25GB with information present in it like
$ head ind_stats
update index statistics pfirm001.dbo.Office using 200 values
go
... (11 Replies)
Discussion started by: sam05121988
11 Replies
LEARN ABOUT CENTOS
plasmapkg
PLASMAPKG(1) KDE User's Manual PLASMAPKG(1)
NAME
plasmapkg - Install, list, remove Plasma packages
SYNOPSIS
plasmapkg [-h, --hash path] [-g, --global] [-t, --type type] [-i, --install path] [-u, --upgrade path] [-l, --list] [--list-types] [-r,
--remove name] [-p, --packageroot path] [KDE Generic Options] [Qt Generic Options]
DESCRIPTION
plasmapkg is a command line tool to install, list, remove Plasma packages.
OPTIONS
-h, --hash path
Generate a SHA1 hash for the package at "path".
-g, --global
For install or remove, operates on packages installed for all users.
-t, --type type
The type of package, e.g. theme, wallpaper, plasmoid, dataengine, runner, layout-template, etc. [plasmoid].
-i, --install path
Install the package at "path".
-u, --upgrade path
Upgrade the package at "path".
-l, --list
List installed packages.
-r, --remove name
Remove the package named "name".
-p, --packageroot path
Absolute path to the package root. If not supplied, then the standard data directories for this KDE session will be searched instead.
SEE ALSO
More detailed user documentation is available from help:/plasma-desktop (either enter this URL into Konqueror, or run khelpcenter
help:/plasma-desktop).
AUTHORS
plasmapkg was written by Aaron Seigo<aseigo@kde.org>.
K Desktop Environment 2012-12-05 PLASMAPKG(1)