(How) Can I edit pacman package files?

Ask questions about Arch Linux ARM. Please search before making a new topic.

(How) Can I edit pacman package files?

Postby Diiny » Thu May 02, 2019 6:49 pm

Hi,

I have setup an apache server on a RPI3B. Everything is good, except that the developers at apache have decide that listing the server in the http header is a good thing. It's not, and I would like to remove this.

I have tried most things to stop the display of the server entry in the header response. The best I could do was limiting it to "Server: Apache". This helps hackers as they can focus their attack on apache and not an unknown server (like nginx). Also, the sending of the unneed header entry adds to the cost of data on large volume websites. But the apache developers don't care, year after year.

Anyway, is there a way I can pause pacman after downloading and expanding the apache package? Then I can try to edit the source code files by hand and resume pacman.

Ty

*** AFTER THOUGHT:
Or is there a way to have pacman re-install the apache package without re-downloading it?
Diiny
 
Posts: 3
Joined: Thu Nov 26, 2015 11:20 pm

Re: (How) Can I edit pacman package files?

Postby karog » Thu May 02, 2019 8:59 pm

@Diiny All packages are downloaded to /var/cache/pacman/pkg.

Find the one you want, unzip it, untar it, make changes, retar and zip to new package, then load the new one with

pacman -U my-package.tar.gz

pacman -U installs a local package.
karog
 
Posts: 301
Joined: Thu Jan 05, 2012 7:55 pm

Re: (How) Can I edit pacman package files?

Postby rcUOUSqU » Wed Jul 31, 2019 8:17 am

Thanks!
pacman -U my-package.tar.gz

pacman -U installs a local package. spankhole

Worked for me!
rcUOUSqU
 
Posts: 1
Joined: Wed Jul 10, 2019 12:29 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 10 guests

cron