You are not logged in.

#1 2012-07-09 15:16:48

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

install a package temporarily?

Sometimes you install a package, because you need it, but never use it again. That way root is growing unnecessarily.
So I was thinking: Is there a way to install a package temporarily, so the installation and all additional dependencies are gone when rebooting?

Last edited by capoeira (2012-07-09 15:17:07)

Offline

#2 2012-07-09 15:41:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: install a package temporarily?

A live distro w/o a permanent store will do just that, otherwise you have to at least have uninstall the stuff you've just installed.
Changing the CacheDir in pacman.conf should help too. When you're done testing you can just remove the packages via 'pacman -Sc' or use a location that will be cleared automatically or reboot, like /tmp (if you're using tmpfs for your /tmp).

Offline

#3 2012-07-09 17:11:12

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: install a package temporarily?

Or use a chroot for testing packages.

Offline

#4 2012-07-09 17:20:30

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

Re: install a package temporarily?

What's wrong with

pacman -Rsn <package>
pacman -Sc

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-07-09 17:33:48

Banton
Member
Registered: 2010-05-28
Posts: 67

Re: install a package temporarily?

I install packages I want to test with --as-deps, so it shows up the next time cleaning the system from orphaned packages.

Offline

#6 2012-07-09 23:09:26

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: install a package temporarily?

Trilby wrote:

What's wrong with

pacman -Rsn <package>
pacman -Sc

nothing wrong, I wanted to automate that


Banton wrote:

I install packages I want to test with --as-deps, so it shows up the next time cleaning the system from orphaned packages.


this is a elegant solution. thanks a lot

Offline

Board footer

Powered by FluxBB