Patch:
A patch is a collection of specified package which especially used to upgrade the system and establish a communication link between the existing application & the new application.
- we can download the patch from the internet and it will be always in 'zip' format.
- we need to unzip it and extract it.
- every patch comes along with batch ID
ex: 118893 -14 //it is called batch id, 118893 is a patch id and 14 is a version
- where the 1st part of the batch id is patch id & 2nd part is version
- by default, if want to add a patch, the patch should be kept at the location called
/var/spool/patch
- but the patch directory doesn't exist, we need to create it
# cd /var/spool
1. # cd /var/spool
2. # mkdir patch
3. # cd patch
4. insert patch cd
# df -h // it displays the cd mounted
# cd /cdrom/cdrom0
# ls
# cd patch_
# ls
(118833_3.zip, 119963_1.zip) // 3- 3 files, 1-1 file
to copy the patch from 'cdrom' to required location
#cp -r 119963_1.zip /var/spool/patch
check:
# cd /var/spool/patch
# ls
119963_1.zip (it should be there)
unzip the file:
# unzip 119963_1.zip
# ls
119963-14 119963-1.zip
Add a patch:
1. #pwd
/var/spool/patch (go to the file where the patch file)
2. # cd 119963-14
3. # pwd
/var/spool/patch/119963-14
4. # patchadd /var/spool/patch/119963-14
to remove the path:
# patchrm 119963-14
A patch is a collection of specified package which especially used to upgrade the system and establish a communication link between the existing application & the new application.
- we can download the patch from the internet and it will be always in 'zip' format.
- we need to unzip it and extract it.
- every patch comes along with batch ID
ex: 118893 -14 //it is called batch id, 118893 is a patch id and 14 is a version
- where the 1st part of the batch id is patch id & 2nd part is version
- by default, if want to add a patch, the patch should be kept at the location called
/var/spool/patch
- but the patch directory doesn't exist, we need to create it
# cd /var/spool
1. # cd /var/spool
2. # mkdir patch
3. # cd patch
4. insert patch cd
# df -h // it displays the cd mounted
# cd /cdrom/cdrom0
# ls
# cd patch_
# ls
(118833_3.zip, 119963_1.zip) // 3- 3 files, 1-1 file
to copy the patch from 'cdrom' to required location
#cp -r 119963_1.zip /var/spool/patch
check:
# cd /var/spool/patch
# ls
119963_1.zip (it should be there)
unzip the file:
# unzip 119963_1.zip
# ls
119963-14 119963-1.zip
Add a patch:
1. #pwd
/var/spool/patch (go to the file where the patch file)
2. # cd 119963-14
3. # pwd
/var/spool/patch/119963-14
4. # patchadd /var/spool/patch/119963-14
to remove the path:
# patchrm 119963-14
No comments:
Post a Comment