You are not logged in.

#1 2015-02-12 11:28:48

parazyd
Member
From: Amsterdam
Registered: 2012-10-14
Posts: 259
Website

Reinstalling system using cached packages in /var

I would like to reinstall my entire system, but my Internet connection was tough to configure the first time I was installing it.
What I would like now is to use my /var/cache/ as a repository(?) for pacstrap.

Is it possible?

Offline

#2 2015-02-12 11:59:48

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: Reinstalling system using cached packages in /var

Do you have your /var on a separate partition?
You could just mount the cache on your live system then use pacstrap.

EDIT: Or if you have a LAN you could copy that cache folder to another machine and run it through a webserver (like darkhttp). Then add it to the mirrorlist on the installing machine.

Last edited by dice (2015-02-12 12:01:34)


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#3 2015-02-12 12:07:14

parazyd
Member
From: Amsterdam
Registered: 2012-10-14
Posts: 259
Website

Re: Reinstalling system using cached packages in /var

How do I use pacstrap with local files? I haven't found any documentation online.

Offline

#4 2015-02-12 12:11:52

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,873
Website

Re: Reinstalling system using cached packages in /var

Without an internet connection you would also need to copy over the pacman database files for the repositories.

Pacstrap is just a wrapper around pacman. It passes through pacman arguments like --cachedir.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2015-02-12 12:23:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,535
Website

Re: Reinstalling system using cached packages in /var

Do you want to install do a different drive (or do you need to reformat/repartition the current one), or are you just trying to fix problems in many packages by getting back to installaed-defaults?  There could be very different approaches depdencing on your goal.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#6 2015-02-12 19:41:12

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Reinstalling system using cached packages in /var

parazyd wrote:

How do I use pacstrap with local files? I haven't found any documentation online.

# pacstrap -c <package names>

See `pacstrap --help`

Offline

#7 2015-02-12 21:04:44

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: Reinstalling system using cached packages in /var

You could just use pacman more like rpm and pacman -U all the packages you need.  Cd to /var/cache/pacman/pkg point pacman to your installation with -r.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#8 2015-02-12 21:08:34

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Reinstalling system using cached packages in /var

parazyd wrote:

I would like to reinstall my entire system

Why?

Offline

#9 2015-02-13 01:01:47

parazyd
Member
From: Amsterdam
Registered: 2012-10-14
Posts: 259
Website

Re: Reinstalling system using cached packages in /var

Trilby wrote:

Do you want to install do a different drive (or do you need to reformat/repartition the current one), or are you just trying to fix problems in many packages by getting back to installaed-defaults?  There could be very different approaches depdencing on your goal.


A reinstall. Like a from-scratch start. I'd like to achieve a system with less bugs than what I have now. And clean it entirely in the process.
Installing to the same machine.

Offline

#10 2015-02-13 01:02:17

parazyd
Member
From: Amsterdam
Registered: 2012-10-14
Posts: 259
Website

Re: Reinstalling system using cached packages in /var

drcouzelis wrote:
parazyd wrote:

I would like to reinstall my entire system

Why?

See post above.

Last edited by parazyd (2015-02-13 01:02:35)

Offline

#11 2015-02-13 01:13:35

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Reinstalling system using cached packages in /var

The cache can also have packages which were uninstalled in the past; either by you or by deprecation. It will also have have older versions of packages. I would instead get a list of installed packages from pacman. If you can't get it from pacman, there is a tool paclog-pkglist which can extract a list of installed packages from the pacman log. Then I would copy the cache to the new system to avoid redownloading everything. I think pacstrap will use the cache dir on the target system so copy the files there.

Moving from System Administration to Newbie Corner.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#12 2015-02-13 01:15:20

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: Reinstalling system using cached packages in /var

pacman -Qs would do the same.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#13 2015-02-13 01:45:53

progandy
Member
Registered: 2012-05-17
Posts: 5,200

Re: Reinstalling system using cached packages in /var

parazyd wrote:

I would like to reinstall my entire system, but my Internet connection was tough to configure the first time I was installing it.

You can copy your network configuration and the necessary packages, then use pacman -U in your installation environment and connect with the copy of your configuration.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB