What is patch?
1)Patch is nothing but updated or enhanced version of installed software (binary file or library collection) which update the software, in order to increase the:
a. Stability
b. Performance
c. Bug fix
d. New features into system.
2) Visit the site SunSolve to download or to find out the patch reports.
3) Each patch has unique patch number followed by revision number for e.g. 111112-03
To Displays a list of the patches currently applied:
1) Use the command patchadd –p as follows:
# patchadd –p
OR
# showrev -p
How to add or install patch to system?
1) Download the patch from suns web site.
2) Unzip the patch by running command:
#unzip 111307-04.zip
3 Apply the patch as follows:
# patchadd 111307-04
Checking installed patches…
Verifying sufficient filesystem capacity (dry run method)…
Installing patch packages…
Patch number 111307-04 has been successfully installed.
See /var/sadm/patch/111307-04/log for details
4) Reboot the system
To remove the patch:
1) Simply run command patchrm
# patchrm 111112-03
How to install the patch without backing up current file (use with caution)?
1) Use –d switch to patchadd command
# patchadd –d 111112-03
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
- RSS feed or Weekly email newsletter
- Share on Twitter • Facebook • 2 comments... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
What is the difference between showrev command and patchadd –p command?
Now try using the patch-managing software sun provides using nothing but a CLI !