Sponsored Content
Full Discussion: OS Patch level command
Operating Systems Linux OS Patch level command Post 302323035 by pludi on Friday 5th of June 2009 07:30:13 AM
Old 06-05-2009
Which distribution of Linux?
  • RPM based (SuSE, Fedora, RHEL, CentOS, ...): rpm -qa
  • DEB based (Debian, Ubuntu, ...): aptitude search ~i
  • Portage based (Gentoo, ...): equery list (provided by gentoolkit)
  • Slackware, LFS: your brain and/or any notes you kept
 

10 More Discussions You Might Find Interesting

1. Solaris

patch level

Hi, how do you check that the latest service packs/patches are installed on the server, When i look at the OS Modules file, all i see is these numbers like 117176-02 etc, what is currently the latest patch level for sunOS 5.9? thnaks (1 Reply)
Discussion started by: narik007
1 Replies

2. Solaris

Patch level of Solaris machine

As i understand, Patch is a fix to bug in a product. What is patch level wrt to solaris OS ? How do i know the patch level of a machine ? I have task to compare patch levels of 2 machines running solaris (3 Replies)
Discussion started by: shafi2all
3 Replies

3. Solaris

Where/What/Howto solve warning/error msg about Kernel patch level?

required Solaris 5.10 Kernel patch 137111-03 required Solaris 5.10 Fibre Channel Device Driver patch 125184-08 I want to know about the descriptions and what the patches will do. I searched www.sun.com (patches/updates) but don't see I am looking for. (1 Reply)
Discussion started by: Y4Net
1 Replies

4. AIX

Finding patch level in AIX

Hi, How to find out patch level in AIX and what patches are installed on AIX box? As per my knowledge oslevel -s will give service and maintanance level description , but regarding patch level any command is there? Regards, Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

5. Shell Programming and Scripting

Patch command help

Hello All, I have a patch file which contains following types of lines - @@ -617,14 +617,8 @@ What does they signify ? (1 Reply)
Discussion started by: paragkalra
1 Replies

6. Solaris

Difference between run level & init level

what are the major Difference Between run level & init level (2 Replies)
Discussion started by: rajaramrnb
2 Replies

7. Solaris

Facing problem after upgrading the kernal patch level to 142900-12

I have a Solaris 10 OS having kernal patch level 138888-03 on several servers but recenlty I upgraded it into 142900-12 on some T-Series servers & v890 server after install them my syslog is increasing at a rate of 1GB on average on all servers . I believe its a bug, can somebody help me in... (1 Reply)
Discussion started by: sb200
1 Replies

8. Solaris

patch level

how can i know the patch level in solaris 10? is there a command to know what patchs installed in my solaris? i mean is there any tool i can run to know that other than pkginfo | more? i need to make an inventory of all my SUN servers. i can run explorer in all the machines but unfortunately i... (3 Replies)
Discussion started by: q8devilish
3 Replies

9. Solaris

Kernel Patch level of ABE.

Hi, Anyone able to advise on how to find the kernel patch level of an ABE? showrev and uname -a will provide kernel patch details of the running environment, but how can I run these commands against the ABE or where do these commands get their information from i.e. is the kernel patch level... (3 Replies)
Discussion started by: CiCa
3 Replies

10. Red Hat

SSL certificate generation on OS level or application level

We have a RHEL 5.8 server at the production level and we have a Java application on this server. I know of the SSL certificate generation at the OS (RHEL) level but it is implemented on the Java application by our development team using the Java keytool. My doubt is that is the SSL generation can... (3 Replies)
Discussion started by: RHCE
3 Replies
XDIFF_FILE_PATCH(3)							 1						       XDIFF_FILE_PATCH(3)

xdiff_file_patch - Patch a file with an unified diff

SYNOPSIS
mixed xdiff_file_patch (string $file, string $patch, string $dest, [int $flags = DIFF_PATCH_NORMAL]) DESCRIPTION
Patches a $file with a $patch and stores the result in a file. $patch has to be an unified diff created by xdiff_file_diff(3)/xdiff_string_diff(3) function. An optional $flags parameter specifies mode of operation. PARAMETERS
o $file - The original file. o $patch - The unified patch file. It has to be created using xdiff_string_diff(3), xdiff_file_diff(3) functions or compatible tools. o $dest - Path of the resulting file. o $flags - Can be either XDIFF_PATCH_NORMAL (default mode, normal patch) or XDIFF_PATCH_REVERSE (reversed patch). Starting from version 1.5.0, you can also use binary OR to enable XDIFF_PATCH_IGNORESPACE flag. RETURN VALUES
Returns FALSE if an internal error happened, string with rejected chunks if patch couldn't be applied or TRUE if patch has been success- fully applied. EXAMPLES
Example #1 xdiff_file_patch(3) example The following code applies unified diff to a file. <?php $old_version = 'my_script-1.0.php'; $patch = 'my_script.patch'; $errors = xdiff_file_patch($old_version, $patch, 'my_script-1.1.php'); if (is_string($errors)) { echo "Rejects: "; echo $errors; } ?> Example #2 Patch reversing example The following code reverses a patch. <?php $new_version = 'my_script-1.1.php'; $patch = 'my_script.patch'; $errors = xdiff_file_patch($new_version, $patch, 'my_script-1.0.php', XDIFF_PATCH_REVERSE); if (is_string($errors)) { echo "Rejects: "; echo $errors; } ?> SEE ALSO
xdiff_file_diff(3). PHP Documentation Group XDIFF_FILE_PATCH(3)
All times are GMT -4. The time now is 07:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy