Questions tagged [patch]

A patch is file used to alter a source code package, e.g. in order to correct a bug or add a feature.

Filter by
Sorted by
Tagged with
0
votes
0answers
38 views

Ansible Patching Failed

I have problem with security patching via Ansible. I have two machines 1) Ansible master server (Version 2.8.4) I want to apply security update to server with RHEL8. But patching failed, see below ...
14
votes
5answers
1k views

Diff of two similar big raw binary files

Let's say I have a 4 GB file abc on my local computer. I have uploaded it to a distant server via SFTP, it took a few hours. Now I have slightly modified the file (probably 50 MB maximum, but not ...
0
votes
1answer
67 views

How often do files in these Linux directories change? [closed]

I am currently looking for a Host-Based Intrustion Detection System to perform file integrity checks with. I have some files/directories to start monitoring with: /bin /sbin /usr /opt /lib64 /root /...
0
votes
1answer
40 views

LFS - Should Glibc be patched in Section 5.7?

I'm currently working my way through the Linux From Scratch (LFS) book, but I'm a bit confused about when to apply patches. In Section 5.7 the goal is to build glibc. The section have a pretty ...
0
votes
0answers
71 views

Packages skipped because of dependency problems

While patching is going on a CentOS system, I pressed ctrl+c then the patching stopped. When I tried to patch again, it showed dependency error and I couldn't patch the remaining patches. I got this ...
0
votes
0answers
46 views

Missing steps to run OMSPatcher?

I'm having some trouble applying an Oracle patch to the Management Services. After downloading and unzipping the particular patch in ORACLE_HOME, I get an error that I don't understand when trying to ...
3
votes
3answers
161 views

Why can't entire kernels be patched live?

Over the past few years, various live kernel patching techniques have become popular among sysadmins who strive to ensure the highest possible uptimes for their systems. For that process to be ...
1
vote
0answers
19 views

Open Network Linux (ONL): kernel source patch

I'm trying to apply some patches on the ONL kernel. Based on a question and its reply, there is a method to apply patches. (The link: https://groups.google.com/forum/#!topic/opennetworklinux/...
3
votes
0answers
55 views

Upgrade FreeBSD to specific patch version

My FreeBSD is running version 11.2 FreeBSD host1 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510: Fri Jun 22 04:32:14 UTC 2018 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 I ...
-1
votes
3answers
130 views

Is there a source code available for patch command in Linux?

I am looking for a source code for the patch command used in Linux. Does anyone know if there is one available? I am looking for a something which is compatible to POSIX or more specifically QNX v7.
0
votes
2answers
27 views

Sync two folders via CD-based delta patch

I have a folder of data on a remote PC that gets weekly updates, delivered by CD. The folder is mostly .jar binary files - probably 200 of them, totalling around 350Mb in size. Only a small portion ...
0
votes
2answers
37 views

Deployment systems for Linux

My project is based on a Raspberry Pi distro - Raspbian. But I made changes to it. There are a lot of them: changes in config.txt, adding system services, installing new packages, change the image of ...
9
votes
2answers
854 views

How do I build a kernel using patches from LKML?

I would like to compile a kernel for fedora which contains some not yet merged patches which fix a hardware device of mine. The patches are located here. I have read the guide on compiling a kernel ...
2
votes
0answers
18 views

How to automate recompiling with custom patches for repository sources when updates are available?

I have some patches that I want to apply to various software that I run which add customization that is unlikely to be accepted or has been rejected upstream. I can already download the source for ...
0
votes
1answer
216 views

Update Centos without upgrading kernel or OS

I tried to find answers to this issue but I am having a hard time to find the right keywords. So here is my issue. Dongled mini PC with some itchy software when it comes to patching the system. Is it ...
-1
votes
1answer
39 views

Linux (Redhat 7.5) Patching

I was trying to patch a redhat 7.5 server, but it was giving the below error- Loaded plugins: langpacks, rhnplugin There was an error communicating with RHN. Red Hat Satellite or RHN Classic support ...
1
vote
1answer
226 views

Using diff / patch to create a new file inside a directory

I'm learning about diff/patch and I don't understand why the patch file created by the command sequence below doesn't create the file create_me.txt inside the Org directory when I try to apply it. ...
-2
votes
1answer
89 views

Security patch update [closed]

If applying the latest patch(example : CESA-2019:0679 - Libssh2 Security Update - CentOS 7 x86_64) will cover the previous patch changes or we need to do it separately?
0
votes
1answer
99 views

Ubuntu Security Patches for Apache2

How do i get the newest version on Ubuntu 18.04 (Longterm Version only!) for the apache2 package? (Please let me know if they apply the security patches from the newer versions backwards and i just ...
1
vote
0answers
105 views

How to apply specific diff patch to improve wireless Tx rate

My Dell XPS15 9560 laptop (running on linux kernel 5.0.9), has a Qualcomm wireless adapter, whose Tx rate is capped at 1 Mbps. I want to make it better, if at all possible. $ lspci -k | grep -A4 -e ...
0
votes
2answers
519 views

Linux OS patch vs kernel patch vs firmware upgrade or BIOS upgrade [closed]

Can somebody explain the difference between a Linux OS patch, Linux kernel patch, vs a firmware upgrade or a BIOS upgrade?
-1
votes
2answers
160 views

Linux kernel patch

I am reading "Linux kernel module programming" by Peter Jay Salzman, and in that book they say sys_call_table is no longer exported in 2.6.x kernels. If you really want to try this DANGEROUS ...
0
votes
0answers
14 views

How to find the apps/packages/patches/configurations pending for reboot on hp-ux?

A few config changes carried out, but didn't reboot. Now,I would like to know the patches/apps/packages/apps/configurations pending for reboot for change config verification purposes. While googling, ...
0
votes
1answer
92 views

Patch a glyph into a font from another font

I have a monaco font patched for powerline that I downloaded from this repository. Now for licensing issue there are no free version of this font. Anyway, I use tmux which have U+2502 as a separator ...
5
votes
2answers
624 views

Apply patch to specified file, completely ignoring the path/filename stored in the patch file?

I need to apply a patch to a file in a complicated directory and symlink scenario. No matter what I try, I can't figure out how to massage the patch arguments so that it would find the desired file. ...
1
vote
1answer
97 views

Patch only a portion of a file

I have two files - fileWithMyFix.c and fileCustUpdated.c. I made my fixes to filewithmyfix but was not aware that a customer was updating the same file to make other (unrelated changes). I need to ...
0
votes
1answer
357 views

compile and use a realtime kernel on CentOS 7

I would like to compile and use a realtime kernel on CentOS 7. I found a guide on the web: http://jensd.be/589/linux/complile-and-use-a-realtime-kernel-on-centos-7-or-rhel-7 When I try to use it I ...
2
votes
0answers
70 views

Any tool which can identify insertion of codes within a patch after applying the patch [closed]

Is there any tool (command-line) or method which identify modification of an applied patch in a source file? e.g. - Insertion of new code within the patch Changing the variable or function names ...
0
votes
2answers
517 views

Removing root slash with `-p1` and so forth [duplicate]

I understand that patch allows patching applications when some path components are removed. While -p0 argument will treat a path as is: /var/www/html/example.com -p1 will remove the root slash, so ...
1
vote
1answer
803 views

Allow patch of symlinks

When I try to run a patch command with a patchfile against a link, patch gives me the error: File path/to/file is not a regular file -- refusing to patch The following command produces this error ...
1
vote
1answer
2k views

How to undo after patch is applied? .rej/.orig files

The case is following. I have two files: file1.c, file2.c ls file1.c file2.c patch.diff patch < patch.diff ... x out of x hunk FAILED -- saving rejects to file file1.c.rej (the same with file2.c)...
1
vote
1answer
67 views

Does using the guest account in Ubuntu help for Spectre and Meltdown protection?

I was wondering if I use my computer running Ubuntu only for browsing while using the guest account on an unpatched PC logging in to any site I browse - will it be possible to steal any passwords ...
0
votes
1answer
1k views

Apply patch to multiple different name

Is it possible to apply patch to different file name but with the same structure. The case was, I have a patch of a file with specific name and then for some inevitable reason that file got changed ...
1
vote
1answer
182 views

Malformed patch error on AIX machine

I'm created a SVN patch to port from a Linux server to AIX server. The SVN generated patch is as below: Index: cas/cm/cmsee.c =================================================================== --- ...
0
votes
1answer
382 views

Applying RT PREEMPT kernel patch fails

I am trying to apply the RT PREEMPT patch for the Linux kernel. As mentioned in guides like this and this, you are supposed to do it like this: zcat patch-4.14.15-rt13.patch.gz | patch -p1 (...
2
votes
2answers
455 views

Does `patch` work with asymmetric context?

I have file a: This file does have an error in it that needs to be fixed. and a similar file b: This file does have no error in it that needs to be fixed. I can create a unified diff with diff -u ...
1
vote
2answers
102 views

Update strategy for some CentOS packages

We are a free/open source project. We rent a CentOS 7 x86_64 VM for a website and wiki. We keep the VM fully patched. Once a week we log-in and run yum update to ensure we have the latest gear. Some ...
2
votes
1answer
1k views

How can I run patch through a heredoc in bash?

I'm trying to patch a file like this in bash: cat << ''EOF | patch --dry-run > --- urancid 2017-12-06 09:56:33.000000000 -0600 patch --dry-run > +++ /tmp/urancid 2017-12-06 15:...
1
vote
0answers
263 views

Patching fourcc code INZI

I am using Ubuntu 16.04 64 bit to try to capture RGB and Depth images from a Realsense SR300 depth camera. I have installed the appropriate SDK etc, and the camera is being recognised and producing ...
0
votes
2answers
129 views

Is a package specific to a Linux distribution? How to protect against KRACK

I run multiple distributions of Linux. I am researching how to patch against KRACK. The package that is vulnerable in Linux is 'wpa_supplicant'. According to the Vendor Responses the "Linux patch" ...
1
vote
1answer
49 views

What is the origin of multi-line change log entries?

Being able to dig into software history and find a proper justification for the code is great. I think I first saw these in Linux patches - pre-source control. Obviously when Git was written, it ...
1
vote
0answers
188 views

Raspberry Pi RT Preempt Linux Kernel Build Error

I am trying to Build and install a Raspberry Pi RT Preempt Linux Kernel. These are the steps that I had followed: I installed the pre-compiled kernel kernel-4.4.9-rt17.tgz I downloaded Raspberry Pi ...
1
vote
2answers
311 views

How do I patch, compile & upgrade Thunar with a recently released patch… the Arch way?

There's been a patch recently that fixes a very annoying bug in Thunar, which has the latter lock up when files change in the currently open directory. I don't want to wait and would like to download ...
0
votes
1answer
2k views

applying a patch file created by git-diff

I have done a git-diff to generate a patch file: cd git diff --no-prefix ~/.vim/bundle/vim-latex-suite/ftplugin/latex-suite/compiler.vim ~/compiler.vim > ~/vimlatex.patch The resulting patch is ...
0
votes
1answer
1k views

To what files does ` patch -p1` apply the patch in this example?

For revert the changes to a file in a commit, from https://stackoverflow.com/a/2620822/156458 #!/bin/bash function output_help { echo "usage: git-revert-single-file <sha1> <file>" } ...
0
votes
1answer
232 views

Why is `-p1` to `patch` here?

For revert the changes to a file in a commit, from https://stackoverflow.com/a/2620822/156458 #!/bin/bash function output_help { echo "usage: git-revert-single-file <sha1> <file>" } ...
0
votes
1answer
734 views

fatal: Not a git repository?

In order to build and install Yocto for SMA-IMX6, I created a folder and then ran sudo apt-get install git. I could not download the source code directly, so I first downloaded the kernel linux-...
0
votes
1answer
122 views

Patching the kernel with a custom version number and have it listed in grub [closed]

Changed the question to be more specific, in the hope it will be reopened. On Ubuntu, how does one apply a patch (using the patch command) to apply a patch to a kernel (this patch, to get btrfs to ...
3
votes
1answer
860 views

How to apply the xenomai kernel patch on debian?

I've been trying to install xenomai on debian and I'm confused about all the version numbers. I'm on Debian 6 (Linux debian 2.6.32-5-686 #1 SMP Tue May 13 16:33:32 UTC 2014 i686 GNU/Linux) Steps I ...
3
votes
1answer
742 views

Applying patches in debian packages - Part 2

I had asked about applying patches here . I tried today using the same procedure on a different source-package and it failed. Sharing - ~/games $ mkdir decopy ~/games/decopy $ apt-get source decopy ...