You are not logged in.

#1 2009-04-20 23:41:50

ash
Member
Registered: 2008-12-17
Posts: 134

how does he know ? (pacman and package names)

i take a package from pacman cache on box 1

i rename it from say xorg-1.4.0.pkg.tar.gz to xorg14-1.4.0.pkg.tar.gz

i pacman -U it on box 2

pacman on box 2 : upgrading xorg ###############33

how does he know its xorg and not xorg14 ? (there seem to be only the actual files of the application inside)

how do i rename the package so that pacman really understands its xorg14 and not xorg ?

Offline

#2 2009-04-20 23:47:54

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: how does he know ? (pacman and package names)

Edit the pkgbuild, change the name to xorg14.

Offline

#3 2009-04-20 23:49:21

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,405
Website

Re: how does he know ? (pacman and package names)

There is a file call .PKGINFO inside the tarball that has all the information about the package in it.

Offline

#4 2009-04-21 00:18:11

ash
Member
Registered: 2008-12-17
Posts: 134

Re: how does he know ? (pacman and package names)

can i make a working mirror (which i can pacman -S xorg14 from and it wont get overwritten by current xorg when i Syu) if i change this .PKGINFO in all packages i want and then make a db.tar.gz from the stuff in /var/lib/pacman/sync on that box (after changing it too) ?

Offline

#5 2009-04-21 00:25:06

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: how does he know ? (pacman and package names)

Why not just add it to your ignore list in pacman.conf?

Offline

#6 2009-04-21 01:35:20

ash
Member
Registered: 2008-12-17
Posts: 134

Re: how does he know ? (pacman and package names)

several reasons

i hate ignorepkgs (and the trouble they can make if some dependency escapes out of what you ignorepkg'd)

i have multiple (varying between 5 - 9) boxes that run arch + 3 family / friends boxes with arch that i am the support guy for. when a bad or unexpected update was out (dhcpcd kde4 xorg lib/include/asm etc) it was bad for most or all of the boxes - so i want a solution for all at once

i install from scratch a lot (i naturally have skill of breaking my system to irrecoverable state and with the recent updates of arch its even more cause i swap hard drives). i prefer to have a custom mirror on my usb flash drive

i want to be able to give this mirror easily to others too - like that guy that made the kde 3 mirror

Offline

#7 2009-04-21 03:25:22

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: how does he know ? (pacman and package names)

IIRC, Make a package called xorg14 that CONFLICTS with 'xorg' and PROVIDES 'xorg'

Offline

#8 2009-04-21 07:23:50

ash
Member
Registered: 2008-12-17
Posts: 134

Re: how does he know ? (pacman and package names)

thanks !

Offline

Board footer

Powered by FluxBB