Matching installed programs quickly and easily [Solved]

Anything that pertains to Entropy, Equo or Sulfur

Moderator: Moderators

Post Reply
powemi
Baby Hen
Posts: 2
Joined: Sun Feb 02, 2014 17:35
Location: The State of Hockey

Matching installed programs quickly and easily [Solved]

Post by powemi » Sun Feb 02, 2014 17:47

First off, Hello everyone. This is my first post on Sabayon Forums. I have been running some form of Linux since SuSe 9 back when I was in high school. This by far does not make a genius at this OS. I have spent a lot of time learning and just going through forums in order to make my life a little easier with Linux. I am not a programmer or engineer, I am a Chef that is back to school now for Economics and International Business with plans to go on to a J.D. I run Linux mainly because Windows and OS X suck (while I do run all three on my Mac Pro I have not booted Windows or OS X in over a year.)

On to my question. I have had Sabayon on my Lenovo X230 for a couple months and was extremely impressed by how much speed I gained from having Ubuntu, Fedora on it before. Having this speed increase I installed Sabayon on my Mac Pro and got rid of my Fedora install. Now I have Sabayon on both my main machines. Being new to Equo (yes I have read the Newbie Page https://wiki.sabayon.org/?title=En:Entropy, I have now got both my machines up to date but only my laptop has all my programs on it. Is there a file in Entropy that I can transfer to my Mac Pro from my laptop that would once Equo is updated again will installed all the same programs?

While I have all ready started installing the programs one by one on the desktop I thought this being Linux and all there was probably a easier way to match programs. Can't imagine there is not since it would be a huge waste of time for IT to install everything one by one in a corporate environment. I could be wrong though.

Thanks in advance for any help or advice.
Last edited by powemi on Mon Feb 03, 2014 0:14, edited 1 time in total.

wolfden
Sharecropper
Posts: 9051
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA
Contact:

Re: Matching installed programs quickly and easily

Post by wolfden » Sun Feb 02, 2014 23:51

hmmmmm, off the top of my head you can use equery to generate a list of every thing installed, but than you would have to go thru it and edit out stuff so you weren't reinstalling absolutely every thing. something like equery list "*" > packages should get u a text file to view. Take some time to edit but than you could feed it to equo.

powemi
Baby Hen
Posts: 2
Joined: Sun Feb 02, 2014 17:35
Location: The State of Hockey

Re: Matching installed programs quickly and easily [Solved]

Post by powemi » Mon Feb 03, 2014 0:14

Thanks for that. Took that and made a .txt file on each computer and used Diff which gave me a quick reference of the packages that were needed for the new install, as I usually forget about all the small Cran and Latex add ons that I have installed. Major apps are easier to remember since I use them on a daily basis.

While it is not as automatic as I would expect for something that needs to happen in the world of computers it still gets the job done.

Now both systems are equal on the software side of things.

Thanks again

User avatar
sabayonino
Sagely Hen
Posts: 3190
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Matching installed programs quickly and easily [Solved]

Post by sabayonino » Mon Feb 03, 2014 0:47

you can generate a database backup of entropy

Code: Select all

# equo rescue backup
this backup will be stored in /var/lib/entropy/client/database/{x86,amd64} named entropy_backup___system__<something>.backup.bz2

copy this backup in the same path in another machine then

Code: Select all

# equo rescue restore
follow the istructions to restore backup and

Code: Select all

#  equo upgrade --empty --deep --bdeps && equo deptest && equo libtest
(don't update 'cause will overwrite your database backup)
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

wolfden
Sharecropper
Posts: 9051
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA
Contact:

Re: Matching installed programs quickly and easily [Solved]

Post by wolfden » Mon Feb 03, 2014 10:10

if that isn't in the wiki it should be :)

User avatar
sabayonino
Sagely Hen
Posts: 3190
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Matching installed programs quickly and easily [Solved]

Post by sabayonino » Mon Feb 03, 2014 13:48

wolfden wrote:if that isn't in the wiki it should be :)
uhm ... I think this feature isn' complete

example :

now my sab is ok. I make a backup of entropy

Code: Select all

# equo rescue backup
now I install "amanda" (app-backup/amanda)

Code: Select all

# equo i app-backup/amanda
and its deps

Code: Select all

app-arch/mt-st-1.1|0
╠  ## [N] [sabayonlinux.org] app-arch/sharutils-4.14|0
╠  ## [N] [sabayonlinux.org] app-crypt/aespipe-2.4c|0
╠  ## [N] [sabayonlinux.org] app-arch/dump-0.4.44-r1|0
╠  ## [N] [sabayonlinux.org] sys-block/mtx-1.3.12|0
╠  ## [N] [sabayonlinux.org] app-backup/amanda-3.3.3-r1|1
for some reason my system breaks and decide to restore previous backup (amanda isn't include in entropy backup)

Code: Select all

# equo rescue restore 
[...] <restoring>
# equo upgrade --deep --bdeps --deep && equo deptest && equo libtest

Code: Select all

 equo s amanda
amanda doesn't match .
ok my backup is restored

entropy doesn't find any (extra) libraries installed by amanda but libraries are still present even if amanda isn't installed

Code: Select all

# # ls /usr/lib | grep amanda
amanda

looking for some option(s) to solve this

maybe I'll file a bug
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

wolfden
Sharecropper
Posts: 9051
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA
Contact:

Re: Matching installed programs quickly and easily [Solved]

Post by wolfden » Tue Feb 04, 2014 9:32

I would think you would have to run

Code: Select all

# equo rescue backup
each time you made a change, otherwise how it see the changes?

User avatar
sabayonino
Sagely Hen
Posts: 3190
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Matching installed programs quickly and easily [Solved]

Post by sabayonino » Tue Feb 04, 2014 12:25

wolfden wrote:I would think you would have to run

Code: Select all

# equo rescue backup
each time you made a change, otherwise how it see the changes?

Backup entropy database

Code: Select all

# equo rescue backup

Restore a entropy backup

Code: Select all

# equo rescue restore

see

Code: Select all

# equo rescue --help
The changes are made database only not for all packages,libraries and executables and other files installed before or after a backup. thye're keeped in the filsystem
I would like to see a clenup option for orphan files (like a rsync comand or something else)
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

User avatar
sabayonino
Sagely Hen
Posts: 3190
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Matching installed programs quickly and easily [Solved]

Post by sabayonino » Thu Feb 06, 2014 20:19

you can try this also :

make a backup of entropy datatabse

Code: Select all

# equo rescue backup
make a quickpkg of all package installed and store them where you want (example external hard-drive mounted on /media/packages)

Code: Select all

# equo pkg quickpkg --savedir=/media/packages `equo query list installed`
(without --savedir option all packages will be stored in /var/tmp/entropy by default)

then copy entropy database saved in /var/lib/entropy/client/database/{amd64,x86}/<something>_backup.bz2 to other machine(s) in the same path

in other machine mount external hard-drive (or setup an NFS direcotry)

edit /etc/entropy/repositories.conf.d/entropy_<repository-id> (where <repository-id> is the repository in use {sabayonlinux.org,sabayon-weekly,sabayon-limbo})

add this line at the end of the file :

Code: Select all

pkg = file:///<dir>/<packages>      # /<dir>/<packages> = mount point of external drive or NFS directory)
restore backup

Code: Select all

# equo rescue restore

Code: Select all

# equo upgrade --deep --bdeps --empty
all packages will be downloaded from your external-harddrive or local mount poit

:cyclops:


see

Code: Select all

# equo pkg --help
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

User avatar
sabayonino
Sagely Hen
Posts: 3190
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Matching installed programs quickly and easily [Solved]

Post by sabayonino » Thu Mar 06, 2014 21:47

I performed the follow commands to create a fully installed packages list (and binary packages tbz2)and restore them into fresh install

Backup entropy database

Code: Select all

# equo rescue backup
(see /var/lib/entropy/client/database/<arch>/ )

make packages

Code: Select all

# equo pkg quickpkg --savedir=/where/to/storage/packages   $(equo query list --verbose installed | cut -d" " -f7)
(--savedir could be an external hdd)

To restore these packages in a fresh install :

Mount external HDD where all packages are stored (example > /mnt/HDD )

Edit repository file (/etc/entropy/repositoires.conf.d/entropy_<repository-id> ) and add at the bottom :

Code: Select all

# pkg = file:///mnt/HDD
Copy entropy_backup in the same path and restore backup

Code: Select all

# equo rescue restore
(follow the istructions)

then upgrade (not update ! )

Code: Select all

# equo upgrade --purge --ask

Good luck !
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

Post Reply