Lazyweb: Does this trick exist?

5 views
Skip to first unread message

Walter Lee Davis

unread,
May 18, 2013, 2:28:23 PM5/18/13
to phil...@googlegroups.com
Is there a way with aptitude or apt-get to export the entire list of what you've currently installed on an Ubuntu box in a format that would make sense for recreating that box elsewhere?

Walter

Mat Schaffer

unread,
May 18, 2013, 2:36:44 PM5/18/13
to phil...@googlegroups.com
I've read about doing such things with http://devstructure.com/blueprint/

but in practice I usually end up building a new one with something like chef then using that for reproduction. 


On Saturday, May 18, 2013, Walter Lee Davis wrote:
Is there a way with aptitude or apt-get to export the entire list of what you've currently installed on an Ubuntu box in a format that would make sense for recreating that box elsewhere?

Walter

--
You received this message because you are subscribed to the Google Groups "Philly.rb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phillyrb+u...@googlegroups.com.
To post to this group, send email to phil...@googlegroups.com.
Visit this group at http://groups.google.com/group/phillyrb?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




--

-Mat


Rodney Oliver

unread,
May 18, 2013, 2:45:40 PM5/18/13
to phil...@googlegroups.com
you can try

dpkg --get-selections

this will generate a list of all currently installed packages

dpkg --help for more options

that will give you an entire list of all local packages
On May 18, 2013, at 2:28 PM, Walter Lee Davis <wa...@wdstudio.com> wrote:

> Is there a way with aptitude or apt-get to export the entire list of what you've currently installed on an Ubuntu box in a format that would make sense for recreating that box elsewhere?
>
> Walter
>

Walter Lee Davis

unread,
May 18, 2013, 3:04:08 PM5/18/13
to phil...@googlegroups.com
Thanks! Is dpkg interoperable with Aptitude?

Walter

Rodney Oliver

unread,
May 18, 2013, 3:30:28 PM5/18/13
to phil...@googlegroups.com
hmmm, not sure how you want the two to work together. dpkg will not resolve dependencies automatically like aptitude will. You could -

use dpkg to get a list of packages and then in a bash script feed the list to aptitude or apt and let it install them

Douglas

unread,
May 18, 2013, 3:36:04 PM5/18/13
to phil...@googlegroups.com
Ya. You could just "dpkg -l > packages.txt" open it in open office calc. Cut out the column you want. Then fill in "sudo apt-get install" and copy the text into a script. You could make it one line... but I think that would be to much for a single apt-get line. Low tech solution that I did myself once.

Douglas
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Shanjit Singh

unread,
May 18, 2013, 2:46:07 PM5/18/13
to phil...@googlegroups.com
If you work with virtual machines, http://www.vagrantup.com/

Shan

Jason Stelzer

unread,
May 19, 2013, 11:24:04 AM5/19/13
to phil...@googlegroups.com
dpkg --get-selections > package_state.txt

dpkg --set-selections < package_state.txt ; apt-get dselect-upgrade

That won't do anything WRT configuration files. That's on you/chef/whatever.


On Sat, May 18, 2013 at 2:28 PM, Walter Lee Davis <wa...@wdstudio.com> wrote:
Is there a way with aptitude or apt-get to export the entire list of what you've currently installed on an Ubuntu box in a format that would make sense for recreating that box elsewhere?

Walter

--
You received this message because you are subscribed to the Google Groups "Philly.rb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phillyrb+u...@googlegroups.com.
To post to this group, send email to phil...@googlegroups.com.
Visit this group at http://groups.google.com/group/phillyrb?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.





--
J.

Walter Lee Davis

unread,
May 19, 2013, 11:32:35 AM5/19/13
to phil...@googlegroups.com
Wow. Nice!

Walter
Reply all
Reply to author
Forward
0 new messages