Just wonder if there is a way to find out whether a package has been
removed from a system. Suppose the "pkgrm" entry in
/var/sadm/install/contents file also be removed. Anyway to find out?
|
|
0
|
|
|
|
Reply
|
bridge_xue (25)
|
3/4/2006 12:58:11 AM |
|
I don't think that there is an alternative to see the removed packages
even if /var/samd/install/contents file is not removed, as this file
stores the information related to what packages are being added to the
system.
To my view there is no database maintained by Solaris to have check on
removed packages. Correct me if I am wrong...!!
|
|
0
|
|
|
|
Reply
|
vinsidus
|
3/4/2006 4:31:22 PM
|
|
vinsidus@gmail.com wrote:
> I don't think that there is an alternative to see the removed packages
> even if /var/samd/install/contents file is not removed, as this file
> stores the information related to what packages are being added to the
> system.
>
> To my view there is no database maintained by Solaris to have check on
> removed packages. Correct me if I am wrong...!!
Thanks for reply.
Actually my concerns is the one of the packages was removed from the
system. So is there a way to find out whether this package was removed
or it didn't installed at all?
|
|
0
|
|
|
|
Reply
|
tim_batiees
|
3/4/2006 5:18:24 PM
|
|
whatz the name of the package? Has your file /var/sadm/install/contents
doesn't have that info about whether the package was ever installed??
|
|
0
|
|
|
|
Reply
|
vinsidus
|
3/5/2006 8:07:16 AM
|
|
COMMONLY USED UNIX COMMANDS
wildcard characters
* The * wildcard character substitutes for one or more characters in a
filename. For instance, to list all the files in your directory that
end with .c, enter the command
ls *.c
? ? (question mark) serves as wildcard character for any one character
in a filename. For instance, if you have files named prog1, prog2,
prog3, and prog3 in your directory, the Unix command:
ls prog?
dir
Change cd dir Change to directory d
Make mkdir dir Create new directory d
Move mv dir1 dir2 Rename directory d1 as d2
Remove rmdir dir Remove directory d
file
list , no details only names ls filename , filename with wildcard
character/s.
list , details ls -1 filename , filename with wildcard character/s.
move to directory mv filename dirname (wildcard character/s
supported)
copy file to other/current directory cp file directory/newfile or
cp directory/oldfile .
Delete the file rm file , rm -rf directory - Recursively remove
files & directly without any warning.
file file filename , file command tries to determine the file type ,
text , executable etc after comparing the values in /etc/magic .
File edit/create/view
vi - vi full screen editor vi filename , Opens a existing file
or creates
ed - Line Text editor ed filename
count - Line, word, & char wc filename
Text content display - List contents of file at once cat filename
Text content display by screen : List contents of file screen by
screen more filename
Concatenate - file1 & file2 into file3 cat file1 file2 >file3
File operation
Change read/write/execute mode of fil chmod mode file
chown chown [-R] [-h] owner[:group] file
move (rename ) file mv file1 file2 Rename file file1 as file2
Remove rm file Delete (remove) file f
Compare two files cmp file1 file2
Copy file file1 into file2 cp file1 file2
Sort Alphabetically sort file
Sort Numerically sort -n file
Split f into n-line pieces split [-n] f
match pattern grep pattern file Outputs lines that
Lists file differences diff file1 file2
head f Output beginning of file head file
Output end of file tail file
PROCESS
Suspend current process CTRL/z *
Interrupt processes CTRL/c *
Stop screen scrolling CTRL/s *
Resume screen scrolling CTRL/q *
Sleep for n seconds sleep n
Print list of jobs jobs
Kill job n kill %
Remove process n kill -9 n
status process status stats ps
Resume background job n bg [%n]
Resume foreground job n fg [%n]
Exit from shell exit
User admin
add a new user login to the system # useradd -u 655 -g 20 -d
/home/ttes testlogin loginname
-u is userid , if not specified system takes highest available .
-g group id should be existing in /etc/group , if not specified other
or user is assigned.
-d home directory , default is to use user as the directory name under
the home directory.
loginname - new login name to be created .
#useradd testlogin will create a user by the name 'testlogin' with
all default values .
password Change passwd <user>
alias (csh/tcsh) - Create command alias name1 name2
alias (ksh/bash) - Create alias command alias name1="name2"
alias - Remove alias unalias name1[na2...]
printer
Output file f to line printer lp -d printer file
System Status
Display disk quota quota
Print date & time date
List logged in users who
Display current user whoami
Output user information finger [username]
Display recent commands history
Environment Variable
set set command alone displays the environment variables, it is used to
set options in ksh like set -o vi
export export variable , export makes variable visible in sub
shells.
Set environment variable (csh/tcsh) to value v sentenv name v
Set environment variable (ksh/bash) to value v export name=v
example : export TERM=vt100
Connectivity
Connecting to a remote host $telnet hostname/ip address or
$telnet
Telnet brings up the login prompt of remote host and expects you to
enter your user name & password .Without argument it enters command
mode (telnet>) and accepts command listed by ? at telnet> prompt.
Communication is not encrypted between two hosts.
Securely connecting to a remote host
ssh username@hostname or ssh -l username hostname
Depending on ssh setting for your account you may or may not be asked a
password to login. Your login/passwd will be same login password as you
would use with telnet connection.
Communication is encrypted between two hosts so if someone intercepts
your communication he will not be able to use it.
Copy files from/to remote host ftp hostname
ftp expects you to enter your username/passwd or if it is ftp only
account it will require ftp account password .
put , mput (multipleput) command is used to transfer files to remote
host.
get , mget (multipleput) command is used to transfer files from remote
host.
ftp allows some limited number of commands to be executed at ftp>
prompt & summary of ftp command can be found by using ? at ftp> prompt
Securely copy files from/to remote host
sftp username@hostname:remotefile localfile
Communication is encrypted between two hosts.
Test the tcp/ip connectivity between two hosts ping hostname
If you can ping a host the host is reachable from the machine that you
are using .
Router/firewall configuration may prevent ping to succeed .
Backup and Restore
backup and restore using tar , TApeaRchive tar tvf filename.tar ---
View the table of content of a tar archive
tar xvf filename.tar --- Extract content of a tar archive
tar cvf filename.tar file1 file2 file3 --- Create a tar archive
called filename.tar using file1, file2,file3 .
tar can't copy the special files , device files .Not suitable for
taking root backup.
backup and restore using cpio , CopyInputOutput cpio is mostly used in
conjunction with other commands to generate a list of files to be
copied :
#ls | cpio -o > /dev/rmt/c0t0d0 -- Copy the contents of a directory
into a tape archive:
#find . -depth -print | cpio -pd newdir --- copy entire directory to
other place:
#find . -cpio /dev/rmt/c0t0d0 --- Copy files in current directory to a
tape
cpio can copy special files and hence useful in taking root backup
containing device file.
Find files , directories
find files , directories Find command is used to find the files ,
directories and to run commands on the list of files thus generated .By
default, find does not follow symbolic links.
find . -name *.log -print --- Simple find to list log files
find . -name '*.log' -exec rm {} \; -- Simple find to find log files
and delete them .
find accepts a long list of options to find the files based on
different parameters such as create time , modified time , of certain
size etc. Please refer to man find for more option.
|
|
0
|
|
|
|
Reply
|
Raju
|
3/5/2006 8:42:38 AM
|
|
Raju wrote:
> COMMONLY USED UNIX COMMANDS
> wildcard characters
> * The * wildcard character substitutes for one or more characters in a
> filename. For instance, to list all the files in your directory that
> end with .c, enter the command
> ls *.c
> ? ? (question mark) serves as wildcard character for any one character
> in a filename. For instance, if you have files named prog1, prog2,
> prog3, and prog3 in your directory, the Unix command:
>
> ls prog?
> dir
> Change cd dir Change to directory d
> Make mkdir dir Create new directory d
> Move mv dir1 dir2 Rename directory d1 as d2
> Remove rmdir dir Remove directory d
> file
> list , no details only names ls filename , filename with wildcard
> character/s.
> list , details ls -1 filename , filename with wildcard character/s.
>
> move to directory mv filename dirname (wildcard character/s
> supported)
> copy file to other/current directory cp file directory/newfile or
> cp directory/oldfile .
> Delete the file rm file , rm -rf directory - Recursively remove
> files & directly without any warning.
> file file filename , file command tries to determine the file type ,
> text , executable etc after comparing the values in /etc/magic .
> File edit/create/view
> vi - vi full screen editor vi filename , Opens a existing file
> or creates
> ed - Line Text editor ed filename
> count - Line, word, & char wc filename
> Text content display - List contents of file at once cat filename
> Text content display by screen : List contents of file screen by
> screen more filename
> Concatenate - file1 & file2 into file3 cat file1 file2 >file3
> File operation
> Change read/write/execute mode of fil chmod mode file
> chown chown [-R] [-h] owner[:group] file
> move (rename ) file mv file1 file2 Rename file file1 as file2
> Remove rm file Delete (remove) file f
> Compare two files cmp file1 file2
> Copy file file1 into file2 cp file1 file2
> Sort Alphabetically sort file
> Sort Numerically sort -n file
> Split f into n-line pieces split [-n] f
> match pattern grep pattern file Outputs lines that
> Lists file differences diff file1 file2
> head f Output beginning of file head file
> Output end of file tail file
> PROCESS
> Suspend current process CTRL/z *
> Interrupt processes CTRL/c *
> Stop screen scrolling CTRL/s *
> Resume screen scrolling CTRL/q *
> Sleep for n seconds sleep n
> Print list of jobs jobs
> Kill job n kill %
> Remove process n kill -9 n
> status process status stats ps
> Resume background job n bg [%n]
> Resume foreground job n fg [%n]
> Exit from shell exit
> User admin
> add a new user login to the system # useradd -u 655 -g 20 -d
> /home/ttes testlogin loginname
> -u is userid , if not specified system takes highest available .
> -g group id should be existing in /etc/group , if not specified other
> or user is assigned.
> -d home directory , default is to use user as the directory name under
> the home directory.
> loginname - new login name to be created .
> #useradd testlogin will create a user by the name 'testlogin' with
> all default values .
> password Change passwd <user>
> alias (csh/tcsh) - Create command alias name1 name2
> alias (ksh/bash) - Create alias command alias name1="name2"
> alias - Remove alias unalias name1[na2...]
> printer
> Output file f to line printer lp -d printer file
>
> System Status
> Display disk quota quota
> Print date & time date
> List logged in users who
> Display current user whoami
> Output user information finger [username]
> Display recent commands history
> Environment Variable
> set set command alone displays the environment variables, it is used to
> set options in ksh like set -o vi
> export export variable , export makes variable visible in sub
> shells.
> Set environment variable (csh/tcsh) to value v sentenv name v
> Set environment variable (ksh/bash) to value v export name=v
> example : export TERM=vt100
> Connectivity
> Connecting to a remote host $telnet hostname/ip address or
> $telnet
> Telnet brings up the login prompt of remote host and expects you to
> enter your user name & password .Without argument it enters command
> mode (telnet>) and accepts command listed by ? at telnet> prompt.
> Communication is not encrypted between two hosts.
> Securely connecting to a remote host
> ssh username@hostname or ssh -l username hostname
> Depending on ssh setting for your account you may or may not be asked a
> password to login. Your login/passwd will be same login password as you
> would use with telnet connection.
> Communication is encrypted between two hosts so if someone intercepts
> your communication he will not be able to use it.
> Copy files from/to remote host ftp hostname
> ftp expects you to enter your username/passwd or if it is ftp only
> account it will require ftp account password .
> put , mput (multipleput) command is used to transfer files to remote
> host.
> get , mget (multipleput) command is used to transfer files from remote
> host.
> ftp allows some limited number of commands to be executed at ftp>
> prompt & summary of ftp command can be found by using ? at ftp> prompt
> Securely copy files from/to remote host
> sftp username@hostname:remotefile localfile
> Communication is encrypted between two hosts.
> Test the tcp/ip connectivity between two hosts ping hostname
> If you can ping a host the host is reachable from the machine that you
> are using .
> Router/firewall configuration may prevent ping to succeed .
> Backup and Restore
> backup and restore using tar , TApeaRchive tar tvf filename.tar ---
> View the table of content of a tar archive
> tar xvf filename.tar --- Extract content of a tar archive
> tar cvf filename.tar file1 file2 file3 --- Create a tar archive
> called filename.tar using file1, file2,file3 .
> tar can't copy the special files , device files .Not suitable for
> taking root backup.
> backup and restore using cpio , CopyInputOutput cpio is mostly used in
> conjunction with other commands to generate a list of files to be
> copied :
> #ls | cpio -o > /dev/rmt/c0t0d0 -- Copy the contents of a directory
> into a tape archive:
> #find . -depth -print | cpio -pd newdir --- copy entire directory to
> other place:
> #find . -cpio /dev/rmt/c0t0d0 --- Copy files in current directory to a
> tape
> cpio can copy special files and hence useful in taking root backup
> containing device file.
> Find files , directories
> find files , directories Find command is used to find the files ,
> directories and to run commands on the list of files thus generated .By
> default, find does not follow symbolic links.
>
> find . -name *.log -print --- Simple find to list log files
> find . -name '*.log' -exec rm {} \; -- Simple find to find log files
> and delete them .
> find accepts a long list of options to find the files based on
> different parameters such as create time , modified time , of certain
> size etc. Please refer to man find for more option.
>
What about:
man man
That's a good starting point :)
Certainly get some confused looks from new helpdesk bods!
JulianJ
|
|
0
|
|
|
|
Reply
|
JulianJ
|
3/5/2006 8:59:34 AM
|
|
No i posted Properly, But idnt no y it's showing like dat...
Raju
|
|
0
|
|
|
|
Reply
|
Raju
|
3/5/2006 9:15:43 AM
|
|
|
6 Replies
106 Views
(page loaded in 0.079 seconds)
Similiar Articles: Problems with remove packages in non-global zone - comp.unix ...I'm try remove some packages in non-global zone which do not share storage with global zone (this zone do not have any inherited-pkg-dir entries). -b... Problems with lock and pkgrm - comp.unix.solarisHello, I have problems upgrading the csw packages - so I decided to force a removal of all CSW packages and reinstall again. But this does not w... pkgrm problems - comp.unix.solarisAll, I have created a package and it installs fine but when I try to uninstall using pkgrm it comes out with "## Updating system information. Removal... How to remove GNOME2 from Solaris 10? - comp.unix.solaris ...Hi, is there a better way to remove GNOME2 packages from a Solaris 10 installation than the following one /bin/yes | pkgrm -A -Y GNOME2 ? B... Help Adding Virtual Package SUNWhea S10 6/06 - comp.unix.solaris ...So it appear that SUNWhea was removed during the upgrade from 1/06 to 6/06. I have search all the S10 6/06 CDROMs for the SUNWhea package, and IIRC, the only reference to ... Is there a place I can download SUNWlucfg from? - comp.unix ...This applies to all the live upgrade packages - remove existing ones first, and then install the packages from the upgrade media. -- Andrew Gabriel [email address is ... Remove security from PDF when I have the password - comp.text.pdf ...I could buy Adobe Acrobat Professional which have a feature called "Remove Security", but this software package is quite expensive. Any freeware tools for Windows that ... The Win32ASM Project - comp.lang.asm.x86> The package centers around the use of MASM 6.15... Clearly, that is no longer the case now that "the MASM 6.15 portion has been removed..." Why did Paul Brennick ... hyperref: underline links/urls w/ pdfborderstyle? - comp.text.tex ...... pdfborderstyle={/S/U/W 1} or pdfborderstyle={/S/U} but -- no matter if package- or ... specification for version 1.6) | | * The border style is removed by ... zones: SUNWcsd/SUNWcsr not installed - comp.unix.solaris ...Problems with remove packages in non-global zone - comp.unix ... Problems with remove packages in non-global zone - comp.unix ... zones: SUNWcsd/SUNWcsr not installed ... Removed DP - SCCM still trying to remove packages from itOne of the DPs in our production environment was decomissioned a few months back, but not removed from SCCM. This morning, I used the ConfigMgr DP utility ... Removing a packageRemove a package Challenge. You want to remove a package. Solution # remove a package but leave its config files alone package { "screen": ensure => "absent ... 7/28/2012 11:58:24 PM
|